Allow plugins to filter the redirect status as well as the location. See #4790.

git-svn-id: https://develop.svn.wordpress.org/trunk@7319 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2008-03-15 20:50:49 +00:00
parent c9bb1b604e
commit ea02c0e417
1 changed files with 2 additions and 1 deletions

View File

@ -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;