Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4691-4705 (lines=15) @@
4688
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4689
				}
4690
				break;
4691
			case 'jetpack-manage-opt-out':
4692
4693
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4694
					// Don't show the banner again
4695
4696
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4697
					// redirect back to the page that had the notice
4698
					if ( wp_get_referer() ) {
4699
						wp_safe_redirect( wp_get_referer() );
4700
					} else {
4701
						// Take me to Jetpack
4702
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4703
					}
4704
				}
4705
				break;
4706
			case 'jetpack-protect-multisite-opt-out':
4707
4708
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4706-4720 (lines=15) @@
4703
					}
4704
				}
4705
				break;
4706
			case 'jetpack-protect-multisite-opt-out':
4707
4708
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4709
					// Don't show the banner again
4710
4711
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4712
					// redirect back to the page that had the notice
4713
					if ( wp_get_referer() ) {
4714
						wp_safe_redirect( wp_get_referer() );
4715
					} else {
4716
						// Take me to Jetpack
4717
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4718
					}
4719
				}
4720
				break;
4721
			case 'jetpack-manage-opt-in':
4722
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4723
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.