Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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