Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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