Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 3992-4006 (lines=15) @@
3989
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
3990
				}
3991
				break;
3992
			case 'jetpack-manage-opt-out':
3993
3994
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
3995
					// Don't show the banner again
3996
3997
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
3998
					// redirect back to the page that had the notice
3999
					if ( wp_get_referer() ) {
4000
						wp_safe_redirect( wp_get_referer() );
4001
					} else {
4002
						// Take me to Jetpack
4003
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4004
					}
4005
				}
4006
				break;
4007
			case 'jetpack-protect-multisite-opt-out':
4008
4009
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4007-4021 (lines=15) @@
4004
					}
4005
				}
4006
				break;
4007
			case 'jetpack-protect-multisite-opt-out':
4008
4009
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4010
					// Don't show the banner again
4011
4012
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4013
					// redirect back to the page that had the notice
4014
					if ( wp_get_referer() ) {
4015
						wp_safe_redirect( wp_get_referer() );
4016
					} else {
4017
						// Take me to Jetpack
4018
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4019
					}
4020
				}
4021
				break;
4022
			case 'jetpack-manage-opt-in':
4023
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4024
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.