burn in Hades, status_header(), destroyer of souls. fixes #3528
git-svn-id: https://develop.svn.wordpress.org/trunk@4684 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ac7d4b46cc
commit
6fad793587
@ -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
Block a user