Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4562-4576 (lines=15) @@
4559
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4560
				}
4561
				break;
4562
			case 'jetpack-manage-opt-out':
4563
4564
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4565
					// Don't show the banner again
4566
4567
					Jetpack_Options::update_option( 'dismissed_manage_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-protect-multisite-opt-out':
4578
4579
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4577-4591 (lines=15) @@
4574
					}
4575
				}
4576
				break;
4577
			case 'jetpack-protect-multisite-opt-out':
4578
4579
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4580
					// Don't show the banner again
4581
4582
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4583
					// redirect back to the page that had the notice
4584
					if ( wp_get_referer() ) {
4585
						wp_safe_redirect( wp_get_referer() );
4586
					} else {
4587
						// Take me to Jetpack
4588
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4589
					}
4590
				}
4591
				break;
4592
			case 'jetpack-manage-opt-in':
4593
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4594
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.