From df22877fdb5527edf3b0412b49d3bd4fcc8ccbf7 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Mon, 7 Nov 2005 09:05:47 +0000 Subject: [PATCH] Simplify status_header git-svn-id: https://develop.svn.wordpress.org/trunk@3005 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 666d46192c..686dfbd411 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() {