summaryrefslogtreecommitdiffstats
path: root/wp-signup.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-01-02 17:49:22 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-01-02 17:49:22 +0000
commit59828c87c33266a8c40379fbd096a7af91df5cd9 (patch)
treeb7fda227daa58aed9095359e9da71eceeaa0e482 /wp-signup.php
parent9f984852bd0f5ad05245ee3e2e2c6ed12ed010bf (diff)
downloadwordpress-mu-59828c87c33266a8c40379fbd096a7af91df5cd9.zip
wordpress-mu-59828c87c33266a8c40379fbd096a7af91df5cd9.tar.gz
wordpress-mu-59828c87c33266a8c40379fbd096a7af91df5cd9.tar.xz
Use wp_redirect() instead of header(), fixes #522, props chmac
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1179 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-signup.php')
-rw-r--r--wp-signup.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-signup.php b/wp-signup.php
index 3d75214..2e26f57 100644
--- a/wp-signup.php
+++ b/wp-signup.php
@@ -8,7 +8,7 @@ require( 'wp-blog-header.php' );
require_once( ABSPATH . WPINC . '/registration.php' );
if( is_array( get_site_option( 'illegal_names' )) && $_GET[ 'new' ] != '' && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) {
- header( "Location: http://{$current_site->domain}{$current_site->path}" );
+ wp_redirect( "http://{$current_site->domain}{$current_site->path}" );
die();
}
@@ -19,7 +19,7 @@ function signuppageheaders() {
}
if( $current_blog->domain . $current_blog->path != $current_site->domain . $current_site->path ) {
- header( "Location: http://" . $current_site->domain . $current_site->path . "wp-signup.php" );
+ wp_redirect( "http://" . $current_site->domain . $current_site->path . "wp-signup.php" );
die();
}