diff --git a/wp-includes/functions.php b/wp-includes/functions.php index ebd18d76db..51a3fd9efe 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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() {