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-activity/feeds/bp-activity-personal-feed.php

    r5109 r5301  
    3434    <?php do_action('bp_activity_personal_feed_head'); ?>
    3535
    36     <?php if ( bp_has_activities( 'user_id=' . $bp->displayed_user->id . '&max=50&display_comments=stream' ) ) : ?>
     36    <?php if ( bp_has_activities( 'user_id=' . bp_displayed_user_id() . '&max=50&display_comments=stream' ) ) : ?>
    3737        <?php while ( bp_activities() ) : bp_the_activity(); ?>
    3838            <item>
Note: See TracChangeset for help on using the changeset viewer.