Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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