Don't do status_header for IIS. Props Mark Jaquith. fixes #3190

git-svn-id: https://develop.svn.wordpress.org/trunk@4273 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-10-03 00:28:06 +00:00
parent 7d1e552528
commit 76f6cf50c9
1 changed files with 4 additions and 4 deletions

View File

@ -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;