From ef69d82092cbefa389df674393c9a3077a4e3395 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Thu, 10 Dec 2009 08:33:17 +0000 Subject: [PATCH] Use http_response_code for wp_redirect(), so that fastcgi hosts always get 301 redirect love. props error. fixes #6779 git-svn-id: https://develop.svn.wordpress.org/trunk@12358 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/pluggable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 18dda62cf7..1dfe2eb033 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -865,7 +865,7 @@ function wp_redirect($location, $status = 302) { } else { if ( php_sapi_name() != 'cgi-fcgi' ) status_header($status); // This causes problems on IIS and some FastCGI setups - header("Location: $location"); + header("Location: $location", true, $status); } } endif;