From 851aebd7a5655de779a0fffe551ca23c0843232e Mon Sep 17 00:00:00 2001 From: donncha Date: Wed, 23 May 2007 09:52:09 +0000 Subject: Redirect to front page earlier in signup page git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@983 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-signup.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'wp-signup.php') 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" -- cgit