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-screens.php

    r5301 r5302  
    1313
    1414    // Delete any friendship acceptance notifications for the user when viewing a profile
    15     bp_core_delete_notifications_by_type( $bp->loggedin_user->id, $bp->friends->id, 'friendship_accepted' );
     15    bp_core_delete_notifications_by_type( bp_loggedin_user_id(), $bp->friends->id, 'friendship_accepted' );
    1616
    1717    do_action( 'friends_screen_my_friends' );
Note: See TracChangeset for help on using the changeset viewer.