Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 3896-3910 (lines=15) @@
3893
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
3894
				}
3895
				break;
3896
			case 'jetpack-manage-opt-out':
3897
3898
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
3899
					// Don't show the banner again
3900
3901
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
3902
					// redirect back to the page that had the notice
3903
					if ( wp_get_referer() ) {
3904
						wp_safe_redirect( wp_get_referer() );
3905
					} else {
3906
						// Take me to Jetpack
3907
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3908
					}
3909
				}
3910
				break;
3911
			case 'jetpack-protect-multisite-opt-out':
3912
3913
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 3911-3925 (lines=15) @@
3908
					}
3909
				}
3910
				break;
3911
			case 'jetpack-protect-multisite-opt-out':
3912
3913
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
3914
					// Don't show the banner again
3915
3916
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
3917
					// redirect back to the page that had the notice
3918
					if ( wp_get_referer() ) {
3919
						wp_safe_redirect( wp_get_referer() );
3920
					} else {
3921
						// Take me to Jetpack
3922
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3923
					}
3924
				}
3925
				break;
3926
			case 'jetpack-manage-opt-in':
3927
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
3928
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.