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

    r5233 r5301  
    115115    if ( !$item_id ) {
    116116        if ( 'user' == $object )
    117             $item_id = $bp->displayed_user->id;
     117            $item_id = bp_displayed_user_id();
    118118        else if ( bp_is_active( 'groups' ) && 'group' == $object )
    119119            $item_id = $bp->groups->current_group->id;
     
    327327    if ( !$item_id ) {
    328328        if ( 'user' == $object )
    329             $item_id = $bp->displayed_user->id;
     329            $item_id = bp_displayed_user_id();
    330330        else if ( 'group' == $object )
    331331            $item_id = $bp->groups->current_group->id;
Note: See TracChangeset for help on using the changeset viewer.