Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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