Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 3906-3920 (lines=15) @@
3903
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
3904
				}
3905
				break;
3906
			case 'jetpack-manage-opt-out':
3907
3908
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
3909
					// Don't show the banner again
3910
3911
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
3912
					// redirect back to the page that had the notice
3913
					if ( wp_get_referer() ) {
3914
						wp_safe_redirect( wp_get_referer() );
3915
					} else {
3916
						// Take me to Jetpack
3917
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3918
					}
3919
				}
3920
				break;
3921
			case 'jetpack-protect-multisite-opt-out':
3922
3923
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 3921-3935 (lines=15) @@
3918
					}
3919
				}
3920
				break;
3921
			case 'jetpack-protect-multisite-opt-out':
3922
3923
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
3924
					// Don't show the banner again
3925
3926
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
3927
					// redirect back to the page that had the notice
3928
					if ( wp_get_referer() ) {
3929
						wp_safe_redirect( wp_get_referer() );
3930
					} else {
3931
						// Take me to Jetpack
3932
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3933
					}
3934
				}
3935
				break;
3936
			case 'jetpack-manage-opt-in':
3937
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
3938
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.