Use http_response_code for wp_redirect(), so that fastcgi hosts always get 301 redirect love. props error. fixes #6779

git-svn-id: http://svn.automattic.com/wordpress/trunk@12358 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2009-12-10 08:33:17 +00:00
parent c8df74e369
commit 305f103c4f

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;