Make WordPress Core

Opened 7 years ago

Last modified 7 years ago

#40885 new task (blessed)

Update admin color scheme using the REST API

Reported by: rmccue's profile 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)

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

Download all attachments as: .zip

Change History (2)

@rmccue
7 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.


7 years ago

Note: See TracTickets for help on using tickets.