diff --git a/wp-includes/functions.php b/wp-includes/functions.php index d06be2f3f6..2b73a180d0 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -816,10 +816,10 @@ function status_header( $header ) { elseif ( 410 == $header ) $text = 'Gone'; -// if ( substr(php_sapi_name(), 0, 3) == 'cgi' ) + if ( version_compare(php_version(), '4.3.0', '>=') ) + @header("HTTP/1.1 $header $text", true, $header); + else @header("HTTP/1.1 $header $text"); -// else -// @header("Status: $header $text"); } function nocache_headers() {