Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4658-4672 (lines=15) @@
4655
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4656
				}
4657
				break;
4658
			case 'jetpack-manage-opt-out':
4659
4660
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4661
					// Don't show the banner again
4662
4663
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4664
					// redirect back to the page that had the notice
4665
					if ( wp_get_referer() ) {
4666
						wp_safe_redirect( wp_get_referer() );
4667
					} else {
4668
						// Take me to Jetpack
4669
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4670
					}
4671
				}
4672
				break;
4673
			case 'jetpack-protect-multisite-opt-out':
4674
4675
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4673-4687 (lines=15) @@
4670
					}
4671
				}
4672
				break;
4673
			case 'jetpack-protect-multisite-opt-out':
4674
4675
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4676
					// Don't show the banner again
4677
4678
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4679
					// redirect back to the page that had the notice
4680
					if ( wp_get_referer() ) {
4681
						wp_safe_redirect( wp_get_referer() );
4682
					} else {
4683
						// Take me to Jetpack
4684
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4685
					}
4686
				}
4687
				break;
4688
			case 'jetpack-manage-opt-in':
4689
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4690
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.