Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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