Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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