burn in Hades, status_header(), destroyer of souls. fixes #3528
git-svn-id: http://svn.automattic.com/wordpress/trunk@4684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c5e22b5098
commit
7b18a414db
|
@ -816,10 +816,10 @@ function status_header( $header ) {
|
|||
elseif ( 410 == $header )
|
||||
$text = 'Gone';
|
||||
|
||||
if ( substr(php_sapi_name(), 0, 3) == 'cgi' )
|
||||
// if ( substr(php_sapi_name(), 0, 3) == 'cgi' )
|
||||
@header("HTTP/1.1 $header $text");
|
||||
else
|
||||
@header("Status: $header $text");
|
||||
// else
|
||||
// @header("Status: $header $text");
|
||||
}
|
||||
|
||||
function nocache_headers() {
|
||||
|
|
Loading…
Reference in New Issue