Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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