Use http_response_code for wp_redirect(), so that fastcgi hosts always get 301 redirect love. props error. fixes #6779
git-svn-id: https://develop.svn.wordpress.org/trunk@12358 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d08d287832
commit
ef69d82092
@ -865,7 +865,7 @@ function wp_redirect($location, $status = 302) {
|
||||
} else {
|
||||
if ( php_sapi_name() != 'cgi-fcgi' )
|
||||
status_header($status); // This causes problems on IIS and some FastCGI setups
|
||||
header("Location: $location");
|
||||
header("Location: $location", true, $status);
|
||||
}
|
||||
}
|
||||
endif;
|
||||
|
Loading…
Reference in New Issue
Block a user