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:
parent
c9bb1b604e
commit
ea02c0e417
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user