[wp-trac] [WordPress Trac] #57583: Add support for editing block style variations in the global styles
WordPress Trac
noreply at wordpress.org
Wed Feb 1 13:41:31 UTC 2023
#57583: Add support for editing block style variations in the global styles
-------------------------------------------------+-------------------------
Reporter: isabel_brison | Owner:
| hellofromTonya
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.2
Component: Editor | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch gutenberg-merge has- | Focuses:
testing-info has-unit-tests commit |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"55172" 55172]:
{{{
#!CommitTicketReference repository="" revision="55172"
Editor: Add support for editing block style variations in global styles.
To allow editing of block style variations in global styles, this
changeset adds the following for server side support:
* building of block style schema into `WP_Theme_JSON::sanitize()`.
* appending of style variation selectors to block metadata in
`WP_Theme_JSON::get_blocks_metadata()`.
* building of selectors and variations for nodes in
`WP_Theme_JSON::get_block_nodes()`.
Tests for happy and unhappy paths are included.
Reference:
* [https://github.com/WordPress/gutenberg/pull/46343 Gutenberg PR 46343]
Follow-up to [54118], [50973], [50959].
Props isabel_brison,
Fixes #57583.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57583#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list