From 697897019aa165772a0a1dce56bbeba35cd2647b Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Fri, 3 Nov 2006 02:42:47 +0000 Subject: [PATCH] possible solution for #3215 git-svn-id: https://develop.svn.wordpress.org/trunk@4445 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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() {