Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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