Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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