Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4748-4762 (lines=15) @@
4745
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4746
				}
4747
				break;
4748
			case 'jetpack-manage-opt-out':
4749
4750
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4751
					// Don't show the banner again
4752
4753
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4754
					// redirect back to the page that had the notice
4755
					if ( wp_get_referer() ) {
4756
						wp_safe_redirect( wp_get_referer() );
4757
					} else {
4758
						// Take me to Jetpack
4759
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4760
					}
4761
				}
4762
				break;
4763
			case 'jetpack-protect-multisite-opt-out':
4764
4765
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4763-4777 (lines=15) @@
4760
					}
4761
				}
4762
				break;
4763
			case 'jetpack-protect-multisite-opt-out':
4764
4765
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4766
					// Don't show the banner again
4767
4768
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4769
					// redirect back to the page that had the notice
4770
					if ( wp_get_referer() ) {
4771
						wp_safe_redirect( wp_get_referer() );
4772
					} else {
4773
						// Take me to Jetpack
4774
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4775
					}
4776
				}
4777
				break;
4778
			case 'jetpack-manage-opt-in':
4779
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4780
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.