Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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