Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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