Use santize_key() in more places. Props WraithKenny. fixes #14910

git-svn-id: http://svn.automattic.com/wordpress/trunk@16822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2010-12-08 21:32:19 +00:00
parent 62364410c0
commit 83d1c0bf29
2 changed files with 2 additions and 2 deletions

View File

@@ -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_user( $domain, true ) );
$domain = preg_replace( '/\s+/', '', sanitize_key( $domain ) );
if ( is_subdomain_install() )
$domain = str_replace( '@', '', $domain );