Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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