Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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