Check if VHOST is defined in get_id_from_blogname()

git-svn-id: http://svn.automattic.com/wordpress/trunk@12643 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2010-01-07 10:52:21 +00:00
parent 36b2df4606
commit 40efc5b7f4
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ function get_id_from_blogname( $name ) {
if ( $blog_id )
return $blog_id;
if( constant( 'VHOST' ) == 'yes' ) {
if ( defined('VHOST') && constant( 'VHOST' ) == 'yes' ) {
$domain = $name . '.' . $current_site->domain;
$path = $current_site->path;
} else {