From 16998c6bb360da3697628a588885a7d8249c1fd7 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 22 Nov 2006 04:58:31 +0000 Subject: [PATCH] trying Ryan's suggestion for #3215 git-svn-id: http://svn.automattic.com/wordpress/trunk@4513 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 4 ++-- wp-includes/pluggable.php | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index e325301405..4453edb3a7 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -776,9 +776,9 @@ function status_header( $header ) { $text = 'Gone'; if ( substr(php_sapi_name(), 0, 3) == 'cgi' ) - @header("Status: $header $text"); - else @header("HTTP/1.1 $header $text"); + else + @header("Status: $header $text"); } function nocache_headers() { diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 4bb291fdbe..af162da90d 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -270,7 +270,8 @@ function wp_redirect($location, $status = 302) { if ( $is_IIS ) { header("Refresh: 0;url=$location"); } else { - status_header($status); // This causes problems on IIS + if ( php_sapi_name() != 'cgi-fcgi' ) + status_header($status); // This causes problems on IIS and some FastCGI setups header("Location: $location"); } }