Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4710-4724 (lines=15) @@
4707
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4708
				}
4709
				break;
4710
			case 'jetpack-manage-opt-out':
4711
4712
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4713
					// Don't show the banner again
4714
4715
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4716
					// redirect back to the page that had the notice
4717
					if ( wp_get_referer() ) {
4718
						wp_safe_redirect( wp_get_referer() );
4719
					} else {
4720
						// Take me to Jetpack
4721
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4722
					}
4723
				}
4724
				break;
4725
			case 'jetpack-protect-multisite-opt-out':
4726
4727
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4725-4739 (lines=15) @@
4722
					}
4723
				}
4724
				break;
4725
			case 'jetpack-protect-multisite-opt-out':
4726
4727
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4728
					// Don't show the banner again
4729
4730
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4731
					// redirect back to the page that had the notice
4732
					if ( wp_get_referer() ) {
4733
						wp_safe_redirect( wp_get_referer() );
4734
					} else {
4735
						// Take me to Jetpack
4736
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4737
					}
4738
				}
4739
				break;
4740
			case 'jetpack-manage-opt-in':
4741
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4742
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.