Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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