Simplify status_header

git-svn-id: http://svn.automattic.com/wordpress/trunk@3005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-11-07 09:05:47 +00:00
parent 5b1a7b5ed0
commit 725cc84302
1 changed files with 2 additions and 8 deletions

View File

@ -2062,14 +2062,8 @@ function status_header( $header ) {
elseif ( 410 == $header )
$text = 'Gone';
if ( preg_match('/cgi/',php_sapi_name()) ) {
@header("Status: $header $text");
} else {
if ( version_compare(phpversion(), '4.3.0', '>=') )
@header($text, TRUE, $header);
else
@header("HTTP/1.x $header $text");
}
@header("HTTP/1.1 $header $text");
@header("Status: $header $text");
}
function nocache_headers() {