Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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