From 42c36500976cbfd52ce6b5108d439c254cb1c3a5 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 3 Oct 2006 00:28:06 +0000 Subject: [PATCH] Don't do status_header for IIS. Props Mark Jaquith. fixes #3190 git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4273 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pluggable-functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/pluggable-functions.php b/wp-includes/pluggable-functions.php index aabadc0504..f9fe9fa649 100644 --- a/wp-includes/pluggable-functions.php +++ b/wp-includes/pluggable-functions.php @@ -266,12 +266,12 @@ function wp_redirect($location, $status = 302) { $strip = array('%0d', '%0a'); $location = str_replace($strip, '', $location); - status_header($status); - - if ($is_IIS) + if ( $is_IIS ) { header("Refresh: 0;url=$location"); - else + } else { + status_header($status); // This causes problems on IIS header("Location: $location"); + } } endif;