[wp-trac] [WordPress Trac] #38521: REST API: Get rid of the `/users/me` redirect
WordPress Trac
noreply at wordpress.org
Sun Oct 30 23:53:49 UTC 2016
#38521: REST API: Get rid of the `/users/me` redirect
--------------------------+--------------------------
Reporter: jnylen0 | Owner: rachelbaker
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.7
Component: REST API | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+--------------------------
Changes (by pento):
* keywords: close =>
Comment:
[attachment:38521.3.diff] updates the patch to add edit and delete to
`/users/me`.
I'm not convinced that this is a documentation issue. With the redirect in
place, the developer experience will either be "nice, this just works", or
"omg, everything is exploding, I don't know why", particularly when it
comes to the internals of OAuth libraries, or `XMLHttpRequest` behaviour.
Making `/users/me` behave as a proper resource seems like it will fix
this.
(PS: I know that delete on `/users/me` has fairly limited use, but the
ability to delete yourself is too good not to add.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38521#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list