Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 3901-3915 (lines=15) @@
3898
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
3899
				}
3900
				break;
3901
			case 'jetpack-manage-opt-out':
3902
3903
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
3904
					// Don't show the banner again
3905
3906
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
3907
					// redirect back to the page that had the notice
3908
					if ( wp_get_referer() ) {
3909
						wp_safe_redirect( wp_get_referer() );
3910
					} else {
3911
						// Take me to Jetpack
3912
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3913
					}
3914
				}
3915
				break;
3916
			case 'jetpack-protect-multisite-opt-out':
3917
3918
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 3916-3930 (lines=15) @@
3913
					}
3914
				}
3915
				break;
3916
			case 'jetpack-protect-multisite-opt-out':
3917
3918
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
3919
					// Don't show the banner again
3920
3921
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
3922
					// redirect back to the page that had the notice
3923
					if ( wp_get_referer() ) {
3924
						wp_safe_redirect( wp_get_referer() );
3925
					} else {
3926
						// Take me to Jetpack
3927
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3928
					}
3929
				}
3930
				break;
3931
			case 'jetpack-manage-opt-in':
3932
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
3933
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.