Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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