From 305f103c4fe08025caa3885e4cb0f3e91f3487d1 Mon Sep 17 00:00:00 2001 From: markjaquith 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: http://svn.automattic.com/wordpress/trunk@12358 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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;