Check if VHOST is defined in get_id_from_blogname()
git-svn-id: https://develop.svn.wordpress.org/trunk@12643 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f992a598bb
commit
6388f7113b
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue