From 725cc8430231db17755581d137f89e8198e6d026 Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 7 Nov 2005 09:05:47 +0000 Subject: [PATCH] Simplify status_header git-svn-id: http://svn.automattic.com/wordpress/trunk@3005 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 666d46192..686dfbd41 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2062,14 +2062,8 @@ function status_header( $header ) { elseif ( 410 == $header ) $text = 'Gone'; - if ( preg_match('/cgi/',php_sapi_name()) ) { - @header("Status: $header $text"); - } else { - if ( version_compare(phpversion(), '4.3.0', '>=') ) - @header($text, TRUE, $header); - else - @header("HTTP/1.x $header $text"); - } + @header("HTTP/1.1 $header $text"); + @header("Status: $header $text"); } function nocache_headers() {