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-activity/bp-activity-screens.php

    r5301 r5302  
    137137    global $bp;
    138138
    139     bp_core_delete_notifications_by_type( $bp->loggedin_user->id, $bp->activity->id, 'new_at_mention' );
     139    bp_core_delete_notifications_by_type( bp_loggedin_user_id(), $bp->activity->id, 'new_at_mention' );
    140140}
    141141add_action( 'bp_activity_screen_my_activity',               'bp_activity_remove_screen_notifications' );
     
    226226
    227227                // User is not a member of group
    228                 if ( !groups_is_user_member( $bp->loggedin_user->id, $group->id ) ) {
     228                if ( !groups_is_user_member( bp_loggedin_user_id(), $group->id ) ) {
    229229                    $has_access = false;
    230230                }
Note: See TracChangeset for help on using the changeset viewer.