Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4113-4127 (lines=15) @@
4110
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4111
				}
4112
				break;
4113
			case 'jetpack-manage-opt-out':
4114
4115
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4116
					// Don't show the banner again
4117
4118
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4119
					// redirect back to the page that had the notice
4120
					if ( wp_get_referer() ) {
4121
						wp_safe_redirect( wp_get_referer() );
4122
					} else {
4123
						// Take me to Jetpack
4124
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4125
					}
4126
				}
4127
				break;
4128
			case 'jetpack-protect-multisite-opt-out':
4129
4130
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4128-4142 (lines=15) @@
4125
					}
4126
				}
4127
				break;
4128
			case 'jetpack-protect-multisite-opt-out':
4129
4130
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4131
					// Don't show the banner again
4132
4133
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4134
					// redirect back to the page that had the notice
4135
					if ( wp_get_referer() ) {
4136
						wp_safe_redirect( wp_get_referer() );
4137
					} else {
4138
						// Take me to Jetpack
4139
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4140
					}
4141
				}
4142
				break;
4143
			case 'jetpack-manage-opt-in':
4144
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4145
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.