Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4525-4539 (lines=15) @@
4522
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4523
				}
4524
				break;
4525
			case 'jetpack-manage-opt-out':
4526
4527
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4528
					// Don't show the banner again
4529
4530
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4531
					// redirect back to the page that had the notice
4532
					if ( wp_get_referer() ) {
4533
						wp_safe_redirect( wp_get_referer() );
4534
					} else {
4535
						// Take me to Jetpack
4536
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4537
					}
4538
				}
4539
				break;
4540
			case 'jetpack-protect-multisite-opt-out':
4541
4542
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4540-4554 (lines=15) @@
4537
					}
4538
				}
4539
				break;
4540
			case 'jetpack-protect-multisite-opt-out':
4541
4542
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4543
					// Don't show the banner again
4544
4545
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4546
					// redirect back to the page that had the notice
4547
					if ( wp_get_referer() ) {
4548
						wp_safe_redirect( wp_get_referer() );
4549
					} else {
4550
						// Take me to Jetpack
4551
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4552
					}
4553
				}
4554
				break;
4555
			case 'jetpack-manage-opt-in':
4556
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4557
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.