Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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