Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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