Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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