Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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