Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/11/2011 06:02:47 PM (14 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-catchuri.php

    r4104 r4107  
    2828function bp_core_set_uri_globals() {
    2929    global $bp, $bp_unfiltered_uri, $bp_unfiltered_uri_offset;
    30     global $current_blog;
     30    global $current_blog, $wpdb;
    3131
    3232    // Create global component, action, and item variables
     
    3737    // on multiple blogs
    3838    if ( !defined( 'BP_ENABLE_MULTIBLOG' ) && is_multisite() ) {
    39         if ( BP_ROOT_BLOG != (int) $current_blog->blog_id )
     39        if ( BP_ROOT_BLOG != (int) $wpdb->blogid )
    4040            return false;
    4141    }
Note: See TracChangeset for help on using the changeset viewer.