From 3ed654c8474ae2859a760b669beb1c33d085129b Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 9 Dec 2010 19:29:00 +0000 Subject: [PATCH] Go back to sanitize_user() so that dots are allowed. Props ocean90. see #14910 git-svn-id: http://svn.automattic.com/wordpress/trunk@16848 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/ms-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index 65f629cb1..b0696d661 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -843,7 +843,7 @@ function wpmu_create_user( $user_name, $password, $email) { } function wpmu_create_blog($domain, $path, $title, $user_id, $meta = '', $site_id = 1) { - $domain = preg_replace( '/\s+/', '', sanitize_key( $domain ) ); + $domain = preg_replace( '/\s+/', '', sanitize_user( $domain, true ) ); if ( is_subdomain_install() ) $domain = str_replace( '@', '', $domain );