Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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