Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4593-4607 (lines=15) @@
4590
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4591
				}
4592
				break;
4593
			case 'jetpack-manage-opt-out':
4594
4595
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4596
					// Don't show the banner again
4597
4598
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4599
					// redirect back to the page that had the notice
4600
					if ( wp_get_referer() ) {
4601
						wp_safe_redirect( wp_get_referer() );
4602
					} else {
4603
						// Take me to Jetpack
4604
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4605
					}
4606
				}
4607
				break;
4608
			case 'jetpack-protect-multisite-opt-out':
4609
4610
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4608-4622 (lines=15) @@
4605
					}
4606
				}
4607
				break;
4608
			case 'jetpack-protect-multisite-opt-out':
4609
4610
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4611
					// Don't show the banner again
4612
4613
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4614
					// redirect back to the page that had the notice
4615
					if ( wp_get_referer() ) {
4616
						wp_safe_redirect( wp_get_referer() );
4617
					} else {
4618
						// Take me to Jetpack
4619
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4620
					}
4621
				}
4622
				break;
4623
			case 'jetpack-manage-opt-in':
4624
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4625
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.