summaryrefslogtreecommitdiffstats
path: root/wp-signup.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-05-23 09:52:09 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-05-23 09:52:09 +0000
commit851aebd7a5655de779a0fffe551ca23c0843232e (patch)
tree45535ac09146dceaeaebd679d58e5c900d66f6fd /wp-signup.php
parentf1987d67001b62977bf78a16ce552df395c7546a (diff)
downloadwordpress-mu-851aebd7a5655de779a0fffe551ca23c0843232e.tar.gz
wordpress-mu-851aebd7a5655de779a0fffe551ca23c0843232e.tar.xz
wordpress-mu-851aebd7a5655de779a0fffe551ca23c0843232e.zip
Redirect to front page earlier in signup page
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@983 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-signup.php')
-rw-r--r--wp-signup.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/wp-signup.php b/wp-signup.php
index 9c0efee..1056b9a 100644
--- a/wp-signup.php
+++ b/wp-signup.php
@@ -4,6 +4,11 @@ require( 'wp-config.php' );
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}" );
+ die();
+}
+
do_action("signup_header");
if( $current_blog->domain != $current_site->domain ) {
@@ -362,11 +367,6 @@ function confirm_blog_signup($domain, $path, $blog_title, $user_name, $user_emai
}
// Main
-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}" );
- die();
-}
-
$active_signup = 'all';
$active_signup = apply_filters( 'wpmu_active_signup', $active_signup ); // return "all", "none", "blog" or "user"