[wp-trac] [WordPress Trac] #40885: Update admin color scheme using the REST API
WordPress Trac
noreply at wordpress.org
Tue May 30 05:55:02 UTC 2017
#40885: Update admin color scheme using the REST API
----------------------------+-----------------------------
Reporter: rmccue | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Keywords: has-patch
Focuses: |
----------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40885>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list