Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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