Make WordPress Core

Opened 9 years ago

Last modified 9 years ago

#40885 new task (blessed)

Update admin color scheme using the REST API

Reported by: rmccue Owned by:
Priority: normal Milestone: Awaiting Review
Component: Administration Version:
Severity: normal Keywords: has-patch
Cc: Focuses:

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)

40885.diff​ (8.3 KB ) - added by rmccue 9 years ago.
Use /wp/v2/users/me for changing color scheme

Download all attachments as: .zip

Change History (2)

@rmccue
9 years ago

Use /wp/v2/users/me for changing color scheme

This ticket was mentioned in ​Slack in #core-restapi by rmccue. ​View the logs.


9 years ago

Note: See TracTickets for help on using tickets.