possible solution for #3215
git-svn-id: http://svn.automattic.com/wordpress/trunk@4445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
db789c6f59
commit
5cd38edafe
|
@ -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