Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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