[wp-trac] [WordPress Trac] #42715: Incorrect results for http://demo.wp-api.org/wp-json/wp/v2/users/me endpoint
WordPress Trac
noreply at wordpress.org
Mon Nov 27 17:50:44 UTC 2017
#42715: Incorrect results for http://demo.wp-api.org/wp-json/wp/v2/users/me
endpoint
--------------------------+-----------------------------
Reporter: kishores | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.9
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
I'm encountering inconsistent data returned from /wp-json/wp/v2/users/me
endpoint when calling the end point. The get_current_user_id() always
return 0, even though I am already logged in.
Well after doing login, apply_filters( 'determine_current_user', false )
returning correct user ID but get_current_user_id() gives 0. I am doing
login using rest api with Basic Auth plugin.
@ref https://github.com/WP-API/WP-API/issues/1640
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42715>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list