Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4762-4776 (lines=15) @@
4759
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4760
				}
4761
				break;
4762
			case 'jetpack-manage-opt-out':
4763
4764
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4765
					// Don't show the banner again
4766
4767
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4768
					// redirect back to the page that had the notice
4769
					if ( wp_get_referer() ) {
4770
						wp_safe_redirect( wp_get_referer() );
4771
					} else {
4772
						// Take me to Jetpack
4773
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4774
					}
4775
				}
4776
				break;
4777
			case 'jetpack-protect-multisite-opt-out':
4778
4779
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4777-4791 (lines=15) @@
4774
					}
4775
				}
4776
				break;
4777
			case 'jetpack-protect-multisite-opt-out':
4778
4779
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4780
					// Don't show the banner again
4781
4782
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4783
					// redirect back to the page that had the notice
4784
					if ( wp_get_referer() ) {
4785
						wp_safe_redirect( wp_get_referer() );
4786
					} else {
4787
						// Take me to Jetpack
4788
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4789
					}
4790
				}
4791
				break;
4792
			case 'jetpack-manage-opt-in':
4793
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4794
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.