Opened 8 years ago
Closed 8 years ago
#38842 closed defect (bug) (fixed)
Current user route redirects without context param in REST API
Reported by: | edygardelima | Owned by: | |
---|---|---|---|
Milestone: | 4.7 | Priority: | normal |
Severity: | normal | Version: | 4.7 |
Component: | REST API | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
Description
In the REST API, the context param is ignored when trying to reach to current user through wp/v2/users/me
. Turns out the route it redirects to wp/v2/users/[id]
but misses any given param.
Attachments (1)
Change History (10)
#1
@
8 years ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 4.7
- Version set to trunk
This ticket was mentioned in Slack in #core-restapi by rachelbaker. View the logs.
8 years ago
This ticket was mentioned in Slack in #core-restapi by danielbachhuber. View the logs.
8 years ago
#5
@
8 years ago
Quoting from the Slack link above - the actual issue here is a bit different now that we're not doing this redirect any more:
Any specific reason
/users/1
iscontext=view
while/users/me
iscontext=embed
? Causes it to skip at least registered meta fields from the/me
response
/me
was only a recently addition (used to 301) so it might have been an oversight from then
Hello @edygardelima, welcome to the WordPress Trac!
Thanks for your report, @dd32 had the same question on Slack today.