Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/11/2011 06:02:47 PM (13 years ago)
Author:
boonebgorges
Message:

Audit of the use of ->blog_id to change to ->blogid where possible, to better account for switch_to_blog() use. Fixes #2984. Props wpmuguru

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-functions.php

    r4088 r4107  
    169169 */
    170170function bp_core_get_root_domain() {
    171     global $current_blog;
     171    global $wpdb;
    172172
    173173    if ( defined( 'BP_ENABLE_MULTIBLOG' ) )
    174         $domain = get_home_url( $current_blog->blog_id );
     174        $domain = get_home_url( $wpdb->blogid );
    175175    else
    176176        $domain = get_home_url( BP_ROOT_BLOG );
Note: See TracChangeset for help on using the changeset viewer.