summaryrefslogtreecommitdiffstats
path: root/wp-includes/pluggable.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/pluggable.php')
-rw-r--r--wp-includes/pluggable.php8
1 files changed, 4 insertions, 4 deletions
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;