[wp-trac] [WordPress Trac] #57526: Globals Styles Endpoint: Declare 'edit_css' capability in links
WordPress Trac
noreply at wordpress.org
Wed Feb 1 18:36:23 UTC 2023
#57526: Globals Styles Endpoint: Declare 'edit_css' capability in links
-------------------------------------------------+-------------------------
Reporter: Mamaduka | Owner:
| hellofromTonya
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.2
Component: REST API | Version: 5.9
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests gutenberg- | Focuses:
merge commit |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"55177" 55177]:
{{{
#!CommitTicketReference repository="" revision="55177"
REST API: Declare 'edit_css' capability in links within
`WP_REST_Global_Styles_Controller`.
Updates the Global Styles endpoint to expose the `'edit_css'` capability
via action links.
References:
* [https://github.com/WordPress/gutenberg/pull/46815 Gutenberg PR 46815]
Part of an effort to hide custom CSS setting for users without
`'edit_css'` capability.
Follow-up to [52342], [52051].
Props mamaduka, dsas, glendaviesnz, mmtr86, talldanwp, timothyblynjacobs.
Fixes #57526.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57526#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list