Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 3866-3880 (lines=15) @@
3863
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
3864
				}
3865
				break;
3866
			case 'jetpack-manage-opt-out':
3867
3868
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
3869
					// Don't show the banner again
3870
3871
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
3872
					// redirect back to the page that had the notice
3873
					if ( wp_get_referer() ) {
3874
						wp_safe_redirect( wp_get_referer() );
3875
					} else {
3876
						// Take me to Jetpack
3877
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3878
					}
3879
				}
3880
				break;
3881
			case 'jetpack-protect-multisite-opt-out':
3882
3883
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 3881-3895 (lines=15) @@
3878
					}
3879
				}
3880
				break;
3881
			case 'jetpack-protect-multisite-opt-out':
3882
3883
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
3884
					// Don't show the banner again
3885
3886
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
3887
					// redirect back to the page that had the notice
3888
					if ( wp_get_referer() ) {
3889
						wp_safe_redirect( wp_get_referer() );
3890
					} else {
3891
						// Take me to Jetpack
3892
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3893
					}
3894
				}
3895
				break;
3896
			case 'jetpack-manage-opt-in':
3897
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
3898
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.