summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-11-03 12:51:53 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-11-03 12:51:53 +0000
commit99532e55fc2d3de5c265bc36976664d1eedbe2ea (patch)
tree4e093f805370cd9d6d00da55d70f73c6306b6f92 /wp-inst/wp-includes
parent80d791a64f4d52c7b2097f4c6310db4b3c07567c (diff)
Check for "_" in username.
Print "email used" message git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@416 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-includes')
-rw-r--r--wp-inst/wp-includes/wpmu-functions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/wp-inst/wp-includes/wpmu-functions.php b/wp-inst/wp-includes/wpmu-functions.php
index e339dbd..f2310ee 100644
--- a/wp-inst/wp-includes/wpmu-functions.php
+++ b/wp-inst/wp-includes/wpmu-functions.php
@@ -99,6 +99,8 @@ function createBlog( $domain, $path, $username, $weblog_title, $admin_email, $so
// Check if the username has been used already. We should return an error message.
if( $wpdb->get_var( "SELECT ID FROM ".$wpdb->users." WHERE user_email = '".$admin_email."'" ) == true )
return "error: email used";
+ if( strpos( " " . $username, "_" ) != false )
+ return "error: username must not contain _";
$errmsg = false ;
$errmsg = apply_filters( "createBlog_check", $errmsg );