Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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