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

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 ) ) {