diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 97e4e4f759..f2a6e647dd 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -673,7 +673,8 @@ function wp_redirect($location, $status = 302) { global $is_IIS; $location = apply_filters('wp_redirect', $location, $status); - + $status = apply_filters('wp_redirect_status', $status, $location); + if ( !$location ) // allows the wp_redirect filter to cancel a redirect return false;