Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/10/2015 02:49:16 AM (9 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-members/bp-members-adminbar.php

    r9351 r9471  
    2121 */
    2222function bp_members_admin_bar_my_account_menu() {
    23     global $bp, $wp_admin_bar;
     23    global $wp_admin_bar;
    2424
    2525    // Bail if this is an ajax request
     
    2929    // Logged in user
    3030    if ( is_user_logged_in() ) {
     31
     32        $bp = buddypress();
    3133
    3234        // Stored in the global so we can add menus easily later on
     
    7375 */
    7476function bp_members_admin_bar_user_admin_menu() {
    75     global $bp, $wp_admin_bar;
     77    global $wp_admin_bar;
    7678
    7779    // Only show if viewing a user
     
    8284    if ( !current_user_can( 'edit_users' ) || bp_is_my_profile() )
    8385        return false;
     86
     87    $bp = buddypress();
    8488
    8589    // Unique ID for the 'My Account' menu
Note: See TracChangeset for help on using the changeset viewer.