WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/07/2010 10:52:21 AM (12 years ago)
Author:
azaozz
Message:

Check if VHOST is defined in get_id_from_blogname()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-functions.php

    r12632 r12643  
    106106    global $wpdb, $current_site;
    107107    $blog_id = wp_cache_get( "get_id_from_blogname_" . $name, 'blog-details' );
    108     if( $blog_id )
     108    if ( $blog_id )
    109109        return $blog_id;
    110110
    111     if( constant( 'VHOST' ) == 'yes' ) {
     111    if ( defined('VHOST') && constant( 'VHOST' ) == 'yes' ) {
    112112        $domain = $name . '.' . $current_site->domain;
    113113        $path = $current_site->path;
Note: See TracChangeset for help on using the changeset viewer.