summaryrefslogtreecommitdiffstats
path: root/wp-includes/wpmu-functions.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-06-26 17:11:44 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-06-26 17:11:44 +0000
commitdfe4c417b097bf76423f0d13f9bbc222b640d370 (patch)
tree8091fd8aab921daa125415435a7aaa4a4e87e0cf /wp-includes/wpmu-functions.php
parenta87bf7c11bce16ae23c9a8a1770dcb2f54d9cc1f (diff)
downloadwordpress-mu-dfe4c417b097bf76423f0d13f9bbc222b640d370.tar.gz
wordpress-mu-dfe4c417b097bf76423f0d13f9bbc222b640d370.tar.xz
wordpress-mu-dfe4c417b097bf76423f0d13f9bbc222b640d370.zip
Create $illegal_names if it's not created during install. (fixes #36)
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@597 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/wpmu-functions.php')
-rw-r--r--wp-includes/wpmu-functions.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php
index a84be1d..c85d654 100644
--- a/wp-includes/wpmu-functions.php
+++ b/wp-includes/wpmu-functions.php
@@ -854,6 +854,10 @@ function wpmu_validate_user_signup($user_name, $user_email) {
}
$illegal_names = get_site_option( "illegal_names" );
+ if( is_array( $illegal_names ) == false ) {
+ $illegal_names = array( "www", "web", "root", "admin", "main", "invite", "administrator" );
+ add_site_option( "illegal_names", $illegal_names );
+ }
if( in_array( $user_name, $illegal_names ) == true ) {
$errors->add('user_name', __("That username is not allowed"));
}