Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4491-4505 (lines=15) @@
4488
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4489
				}
4490
				break;
4491
			case 'jetpack-manage-opt-out':
4492
4493
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4494
					// Don't show the banner again
4495
4496
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4497
					// redirect back to the page that had the notice
4498
					if ( wp_get_referer() ) {
4499
						wp_safe_redirect( wp_get_referer() );
4500
					} else {
4501
						// Take me to Jetpack
4502
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4503
					}
4504
				}
4505
				break;
4506
			case 'jetpack-protect-multisite-opt-out':
4507
4508
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4506-4520 (lines=15) @@
4503
					}
4504
				}
4505
				break;
4506
			case 'jetpack-protect-multisite-opt-out':
4507
4508
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4509
					// Don't show the banner again
4510
4511
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4512
					// redirect back to the page that had the notice
4513
					if ( wp_get_referer() ) {
4514
						wp_safe_redirect( wp_get_referer() );
4515
					} else {
4516
						// Take me to Jetpack
4517
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4518
					}
4519
				}
4520
				break;
4521
			case 'jetpack-manage-opt-in':
4522
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4523
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.