Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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