Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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