Opened 7 years ago
Last modified 7 years ago
#40885 new task (blessed)
Update admin color scheme using the REST API
Reported by: | rmccue | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
Description
Reasonably simple admin-ajax call (notably, with no significant filters) that can be replaced with a call to /wp/v2/users
. Patch attached.
One thing we can't do is provide an enum of valid color schemes, since historically these have only been registered on admin_init
(including in core). This also applies to the sanitization callback on the meta key, which can only remove invalid characters, not validate the scheme is valid.
Attachments (1)
Change History (2)
This ticket was mentioned in Slack in #core-restapi by rmccue. View the logs.
7 years ago
Note: See
TracTickets for help on using
tickets.
Use /wp/v2/users/me for changing color scheme