Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4551-4565 (lines=15) @@
4548
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4549
				}
4550
				break;
4551
			case 'jetpack-manage-opt-out':
4552
4553
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4554
					// Don't show the banner again
4555
4556
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4557
					// redirect back to the page that had the notice
4558
					if ( wp_get_referer() ) {
4559
						wp_safe_redirect( wp_get_referer() );
4560
					} else {
4561
						// Take me to Jetpack
4562
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4563
					}
4564
				}
4565
				break;
4566
			case 'jetpack-protect-multisite-opt-out':
4567
4568
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4566-4580 (lines=15) @@
4563
					}
4564
				}
4565
				break;
4566
			case 'jetpack-protect-multisite-opt-out':
4567
4568
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4569
					// Don't show the banner again
4570
4571
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4572
					// redirect back to the page that had the notice
4573
					if ( wp_get_referer() ) {
4574
						wp_safe_redirect( wp_get_referer() );
4575
					} else {
4576
						// Take me to Jetpack
4577
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4578
					}
4579
				}
4580
				break;
4581
			case 'jetpack-manage-opt-in':
4582
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4583
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.