Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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