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

git-svn-id: https://develop.svn.wordpress.org/trunk@21853 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-09-15 19:29:59 +00:00
parent 93f6ea672e
commit 0b2a08728b
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";
$path = $base.$blogname.'/';
}
if ( domain_exists($mydomain, $path) )
if ( domain_exists($mydomain, $path, $current_site->id) )
$errors->add('blogname', __('Sorry, that site already exists!'));
if ( username_exists( $blogname ) ) {