Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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