Skip to:
Content

BuddyPress.org


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-loader.php

    r5301 r5302  
    147147
    148148            // Pending friend requests
    149             if ( $count = count( friends_get_friendship_request_user_ids( $bp->loggedin_user->id ) ) ) {
     149            if ( $count = count( friends_get_friendship_request_user_ids( bp_loggedin_user_id() ) ) ) {
    150150                $title   = sprintf( __( 'Friends <span class="count">%s</span>',          'buddypress' ), $count );
    151151                $pending = sprintf( __( 'Pending Requests <span class="count">%s</span>', 'buddypress' ), $count );
Note: See TracChangeset for help on using the changeset viewer.