Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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