Opened 10 years ago
Closed 10 years ago
#38842 closed defect (bug) (fixed)
Current user route redirects without context param in REST API
| Reported by: | edygardelima | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7 |
| Component: | REST API | Version: | 4.7 |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
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)
This ticket was mentioned in Slack in #core-restapi by rachelbaker. View the logs.
10 years ago
This ticket was mentioned in Slack in #core-restapi by danielbachhuber. View the logs.
10 years ago
#5
@
10 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/1iscontext=viewwhile/users/meiscontext=embed? Causes it to skip at least registered meta fields from the/meresponse
/mewas only a recently addition (used to 301) so it might have been an oversight from then
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hello @edygardelima, welcome to the WordPress Trac!
Thanks for your report, @dd32 had the same question on Slack today.