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/deprecated/1.5.php

    r5296 r5301  
    130130    global $bp;
    131131
    132     $ud = get_userdata( $bp->displayed_user->id ); ?>
     132    $ud = get_userdata( bp_displayed_user_id() ); ?>
    133133
    134134<div class="bp-widget wp-profile">
Note: See TracChangeset for help on using the changeset viewer.