Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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