Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4623-4637 (lines=15) @@
4620
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4621
				}
4622
				break;
4623
			case 'jetpack-manage-opt-out':
4624
4625
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4626
					// Don't show the banner again
4627
4628
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4629
					// redirect back to the page that had the notice
4630
					if ( wp_get_referer() ) {
4631
						wp_safe_redirect( wp_get_referer() );
4632
					} else {
4633
						// Take me to Jetpack
4634
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4635
					}
4636
				}
4637
				break;
4638
			case 'jetpack-protect-multisite-opt-out':
4639
4640
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4638-4652 (lines=15) @@
4635
					}
4636
				}
4637
				break;
4638
			case 'jetpack-protect-multisite-opt-out':
4639
4640
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4641
					// Don't show the banner again
4642
4643
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4644
					// redirect back to the page that had the notice
4645
					if ( wp_get_referer() ) {
4646
						wp_safe_redirect( wp_get_referer() );
4647
					} else {
4648
						// Take me to Jetpack
4649
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4650
					}
4651
				}
4652
				break;
4653
			case 'jetpack-manage-opt-in':
4654
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4655
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.