From 23c0a299ada091cdeece968ad5cd3bdd20f5ef3c Mon Sep 17 00:00:00 2001 From: donncha Date: Tue, 3 Oct 2006 10:52:54 +0000 Subject: WP Merge to rev 4273 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@788 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/pluggable.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'wp-includes/pluggable.php') diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 0c33ad7..71e28fa 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -272,12 +272,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; -- cgit