Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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