Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4621-4635 (lines=15) @@
4618
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4619
				}
4620
				break;
4621
			case 'jetpack-manage-opt-out':
4622
4623
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4624
					// Don't show the banner again
4625
4626
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4627
					// redirect back to the page that had the notice
4628
					if ( wp_get_referer() ) {
4629
						wp_safe_redirect( wp_get_referer() );
4630
					} else {
4631
						// Take me to Jetpack
4632
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4633
					}
4634
				}
4635
				break;
4636
			case 'jetpack-protect-multisite-opt-out':
4637
4638
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4636-4650 (lines=15) @@
4633
					}
4634
				}
4635
				break;
4636
			case 'jetpack-protect-multisite-opt-out':
4637
4638
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4639
					// Don't show the banner again
4640
4641
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4642
					// redirect back to the page that had the notice
4643
					if ( wp_get_referer() ) {
4644
						wp_safe_redirect( wp_get_referer() );
4645
					} else {
4646
						// Take me to Jetpack
4647
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4648
					}
4649
				}
4650
				break;
4651
			case 'jetpack-manage-opt-in':
4652
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4653
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.