Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/03/2024 06:19:06 PM (5 months ago)
Author:
espellcaste
Message:

A user is no longer de-authenticated when making REST API requests.

We are introducing a new BP_LoggedIn_User class to fetch data about a BuddyPress logged-in user. This new addition fixes an issue where a user could be de-authenticated when making REST API requests.

Props dcavins, DJPaul, johnjamesjacoby, and imath.

Closes https://github.com/buddypress/buddypress/pull/395
See #9229 and #9145
Fixes #7658

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-functions.php

    r14068 r14070  
    749749    }
    750750
    751     if ( bp_loggedin_user_id() ) {
    752         buddypress()->loggedin_user->fullname = bp_core_get_user_displayname( bp_loggedin_user_id() );
    753     }
    754 
    755751    if ( bp_displayed_user_id() ) {
    756752        buddypress()->displayed_user->fullname = bp_core_get_user_displayname( bp_displayed_user_id() );
Note: See TracChangeset for help on using the changeset viewer.