Use http_response_code for in status_header() on PHP >= 4.3.0 per Ryan's suggestion. relates to #3528

git-svn-id: https://develop.svn.wordpress.org/trunk@4724 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-01-12 21:41:48 +00:00
parent b9719b9a71
commit 61133b735f
1 changed files with 3 additions and 3 deletions

View File

@ -816,10 +816,10 @@ function status_header( $header ) {
elseif ( 410 == $header )
$text = 'Gone';
// if ( substr(php_sapi_name(), 0, 3) == 'cgi' )
if ( version_compare(php_version(), '4.3.0', '>=') )
@header("HTTP/1.1 $header $text", true, $header);
else
@header("HTTP/1.1 $header $text");
// else
// @header("Status: $header $text");
}
function nocache_headers() {