Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4683-4697 (lines=15) @@
4680
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4681
				}
4682
				break;
4683
			case 'jetpack-manage-opt-out':
4684
4685
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4686
					// Don't show the banner again
4687
4688
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4689
					// redirect back to the page that had the notice
4690
					if ( wp_get_referer() ) {
4691
						wp_safe_redirect( wp_get_referer() );
4692
					} else {
4693
						// Take me to Jetpack
4694
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4695
					}
4696
				}
4697
				break;
4698
			case 'jetpack-protect-multisite-opt-out':
4699
4700
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4698-4712 (lines=15) @@
4695
					}
4696
				}
4697
				break;
4698
			case 'jetpack-protect-multisite-opt-out':
4699
4700
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4701
					// Don't show the banner again
4702
4703
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4704
					// redirect back to the page that had the notice
4705
					if ( wp_get_referer() ) {
4706
						wp_safe_redirect( wp_get_referer() );
4707
					} else {
4708
						// Take me to Jetpack
4709
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4710
					}
4711
				}
4712
				break;
4713
			case 'jetpack-manage-opt-in':
4714
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4715
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.