Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4606-4620 (lines=15) @@
4603
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4604
				}
4605
				break;
4606
			case 'jetpack-manage-opt-out':
4607
4608
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4609
					// Don't show the banner again
4610
4611
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4612
					// redirect back to the page that had the notice
4613
					if ( wp_get_referer() ) {
4614
						wp_safe_redirect( wp_get_referer() );
4615
					} else {
4616
						// Take me to Jetpack
4617
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4618
					}
4619
				}
4620
				break;
4621
			case 'jetpack-protect-multisite-opt-out':
4622
4623
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4621-4635 (lines=15) @@
4618
					}
4619
				}
4620
				break;
4621
			case 'jetpack-protect-multisite-opt-out':
4622
4623
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4624
					// Don't show the banner again
4625
4626
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4627
					// redirect back to the page that had the notice
4628
					if ( wp_get_referer() ) {
4629
						wp_safe_redirect( wp_get_referer() );
4630
					} else {
4631
						// Take me to Jetpack
4632
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4633
					}
4634
				}
4635
				break;
4636
			case 'jetpack-manage-opt-in':
4637
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4638
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.