Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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