Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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