Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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