Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4644-4658 (lines=15) @@
4641
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4642
				}
4643
				break;
4644
			case 'jetpack-manage-opt-out':
4645
4646
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4647
					// Don't show the banner again
4648
4649
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4650
					// redirect back to the page that had the notice
4651
					if ( wp_get_referer() ) {
4652
						wp_safe_redirect( wp_get_referer() );
4653
					} else {
4654
						// Take me to Jetpack
4655
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4656
					}
4657
				}
4658
				break;
4659
			case 'jetpack-protect-multisite-opt-out':
4660
4661
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4659-4673 (lines=15) @@
4656
					}
4657
				}
4658
				break;
4659
			case 'jetpack-protect-multisite-opt-out':
4660
4661
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4662
					// Don't show the banner again
4663
4664
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4665
					// redirect back to the page that had the notice
4666
					if ( wp_get_referer() ) {
4667
						wp_safe_redirect( wp_get_referer() );
4668
					} else {
4669
						// Take me to Jetpack
4670
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4671
					}
4672
				}
4673
				break;
4674
			case 'jetpack-manage-opt-in':
4675
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4676
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.