Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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