summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wp-signup.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-signup.php b/wp-signup.php
index d0b6e6f..7e0cfc1 100644
--- a/wp-signup.php
+++ b/wp-signup.php
@@ -356,7 +356,7 @@ function confirm_blog_signup($domain, $path, $blog_title, $user_name, $user_emai
}
// Main
-if( !empty( get_site_option( 'illegal_names' ) ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) {
+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();
}