Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/03/2024 06:19:06 PM (14 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/tests/phpunit/testcases/messages/cache.php

    r13980 r14070  
    145145        // delete thread
    146146        // to outright delete a thread, both recipients must delete it
    147         self::set_current_user( $u1 );
     147        wp_set_current_user( $u1 );
    148148        messages_delete_thread( $t1 );
    149         self::set_current_user( $u2 );
     149        wp_set_current_user( $u2 );
    150150        messages_delete_thread( $t1 );
    151151
     
    155155
    156156        // cleanup
    157         self::set_current_user( $this->old_current_user );
     157        wp_set_current_user( $this->old_current_user );
    158158    }
    159159
Note: See TracChangeset for help on using the changeset viewer.