Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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