Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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