Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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