Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4618-4632 (lines=15) @@
4615
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4616
				}
4617
				break;
4618
			case 'jetpack-manage-opt-out':
4619
4620
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4621
					// Don't show the banner again
4622
4623
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4624
					// redirect back to the page that had the notice
4625
					if ( wp_get_referer() ) {
4626
						wp_safe_redirect( wp_get_referer() );
4627
					} else {
4628
						// Take me to Jetpack
4629
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4630
					}
4631
				}
4632
				break;
4633
			case 'jetpack-protect-multisite-opt-out':
4634
4635
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4633-4647 (lines=15) @@
4630
					}
4631
				}
4632
				break;
4633
			case 'jetpack-protect-multisite-opt-out':
4634
4635
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4636
					// Don't show the banner again
4637
4638
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4639
					// redirect back to the page that had the notice
4640
					if ( wp_get_referer() ) {
4641
						wp_safe_redirect( wp_get_referer() );
4642
					} else {
4643
						// Take me to Jetpack
4644
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4645
					}
4646
				}
4647
				break;
4648
			case 'jetpack-manage-opt-in':
4649
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4650
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.