Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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