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-friends/bp-friends-filters.php

    r8958 r9471  
    1616 * @since BuddyPress (1.7.0)
    1717 *
    18  * @global BuddyPress $bp Global BuddyPress settings.
    1918 * @global WPDB $wpdb WordPress database access object.
    2019 *
     
    2423 */
    2524function bp_friends_filter_user_query_populate_extras( BP_User_Query $user_query, $user_ids_sql ) {
    26     global $bp, $wpdb;
     25    global $wpdb;
    2726
    2827    // stop if user isn't logged in
     
    3029        return;
    3130    }
     31
     32    $bp = buddypress();
    3233
    3334    // Fetch whether or not the user is a friend of the current user
Note: See TracChangeset for help on using the changeset viewer.