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/admin/bp-core-admin.php

    r4105 r4107  
    1919 */
    2020function bp_core_activation_notice() {
    21     global $wp_rewrite, $current_blog, $bp;
     21    global $wp_rewrite, $wpdb, $bp;
    2222
    2323    if ( isset( $_POST['permalink_structure'] ) )
     
    2727        return false;
    2828
    29     if ( !empty( $current_blog ) ) {
    30         if ( $current_blog->blog_id != BP_ROOT_BLOG ) {
     29    if ( !empty( $wpdb->blogid ) ) {
     30        if ( $wpdb->blogid != BP_ROOT_BLOG ) {
    3131            return false;
    3232        }
     
    9191 */
    9292function bp_core_admin_settings() {
    93     global $wpdb, $bp, $current_blog;
     93    global $wpdb, $bp;
    9494
    9595    $ud = get_userdata( $bp->loggedin_user->id );
Note: See TracChangeset for help on using the changeset viewer.