Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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