Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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