Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/10/2015 02:49:16 AM (10 years ago)
Author:
johnjamesjacoby
Message:

Replace all remaining $bp global touches with buddypress().

All existing tests continue to pass as normal. I will further manually scrutinize each replacement to ensure correctness.

Fixes #5138. Any stragglers or updates will reference this ticket.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/bp-core-tools.php

    r9308 r9471  
    156156 */
    157157function bp_admin_repair_friend_count() {
    158     global $wpdb, $bp;
     158    global $wpdb;
    159159
    160160    if ( ! bp_is_active( 'friends' ) ) {
     
    169169        return array( 1, sprintf( $statement, $result ) );
    170170    }
     171
     172    $bp = buddypress();
    171173
    172174    // Walk through all users on the site
     
    212214 */
    213215function bp_admin_repair_group_count() {
    214     global $wpdb, $bp;
     216    global $wpdb;
    215217
    216218    if ( ! bp_is_active( 'groups' ) ) {
     
    225227        return array( 1, sprintf( $statement, $result ) );
    226228    }
     229
     230    $bp = buddypress();
    227231
    228232    // Walk through all users on the site
Note: See TracChangeset for help on using the changeset viewer.