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:
Mark Jaquith 2009-12-10 08:33:17 +00:00
parent d08d287832
commit ef69d82092
1 changed files with 1 additions and 1 deletions

View File

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