Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/08/2011 01:14:31 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Use bp_displayed_user_id() rather than reference the $bp->displayed_user->id global var directly. First step at consolidating user ID checks to use WP_User class later. See #3738.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-adminbar.php

    r5289 r5301  
    109109    // User avatar
    110110    $avatar = bp_core_fetch_avatar( array(
    111         'item_id' => $bp->displayed_user->id,
     111        'item_id' => bp_displayed_user_id(),
    112112        'email'   => $bp->displayed_user->userdata->user_email,
    113113        'width'   => 16,
Note: See TracChangeset for help on using the changeset viewer.