Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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