Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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