Pass current network ID to domain_exists() in wpmu_validate_blog_signup(). props larysa, fixes #17303.

git-svn-id: http://core.svn.wordpress.org/trunk@21853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-09-15 19:29:59 +00:00
parent 85d25dacc5
commit 923b3e8e0e
1 changed files with 1 additions and 1 deletions

View File

@ -589,7 +589,7 @@ function wpmu_validate_blog_signup($blogname, $blog_title, $user = '') {
$mydomain = "$domain"; $mydomain = "$domain";
$path = $base.$blogname.'/'; $path = $base.$blogname.'/';
} }
if ( domain_exists($mydomain, $path) ) if ( domain_exists($mydomain, $path, $current_site->id) )
$errors->add('blogname', __('Sorry, that site already exists!')); $errors->add('blogname', __('Sorry, that site already exists!'));
if ( username_exists( $blogname ) ) { if ( username_exists( $blogname ) ) {