Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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