possible solution for #3215
git-svn-id: https://develop.svn.wordpress.org/trunk@4445 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
24524f4d65
commit
697897019a
@ -775,8 +775,10 @@ function status_header( $header ) {
|
||||
elseif ( 410 == $header )
|
||||
$text = 'Gone';
|
||||
|
||||
@header("HTTP/1.1 $header $text");
|
||||
@header("Status: $header $text");
|
||||
if ( substr(php_sapi_name(), 0, 3) == 'cgi' )
|
||||
@header("Status: $header $text");
|
||||
else
|
||||
@header("HTTP/1.1 $header $text");
|
||||
}
|
||||
|
||||
function nocache_headers() {
|
||||
|
Loading…
Reference in New Issue
Block a user