Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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