From 608fd4e44f067c6673fc055b2d0ade8ac5590196 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Wed, 22 Nov 2006 04:58:31 +0000 Subject: [PATCH] trying Ryan's suggestion for #3215 git-svn-id: https://develop.svn.wordpress.org/trunk@4513 602fd350-edb4-49c9-b593-d223f7449a82 --- 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"); } }