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
This commit is contained in:
parent
589d768e06
commit
42c3650097
|
@ -266,12 +266,12 @@ function wp_redirect($location, $status = 302) {
|
||||||
$strip = array('%0d', '%0a');
|
$strip = array('%0d', '%0a');
|
||||||
$location = str_replace($strip, '', $location);
|
$location = str_replace($strip, '', $location);
|
||||||
|
|
||||||
status_header($status);
|
if ( $is_IIS ) {
|
||||||
|
|
||||||
if ($is_IIS)
|
|
||||||
header("Refresh: 0;url=$location");
|
header("Refresh: 0;url=$location");
|
||||||
else
|
} else {
|
||||||
|
status_header($status); // This causes problems on IIS
|
||||||
header("Location: $location");
|
header("Location: $location");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue