[wp-trac] [WordPress Trac] #62399: Theme JSON: include block style variations in path only output of get_block_nodes
WordPress Trac
noreply at wordpress.org
Wed Nov 13 04:24:53 UTC 2024
#62399: Theme JSON: include block style variations in path only output of
get_block_nodes
--------------------------+--------------------------------------
Reporter: ramonopoly | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords: has-patch has-unit-tests
Focuses: |
--------------------------+--------------------------------------
Follow up to https://core.trac.wordpress.org/ticket/61858.
In https://github.com/WordPress/wordpress-develop/pull/7486, an
`$include_node_paths_only` option was added to `get_block_nodes()` to
improve performance.
When `true` this option tells the function to only return paths, and not
selectors, for consumers that only needed paths to style values.
For [https://github.com/WordPress/gutenberg/pull/66002/files#diff-
b03597cc3da199e5aa5a94950e8241135904853e7c3b82d758e42744878afae7R2751 one
of the conditional blocks], block style variations wasn't included.
Priority is low (can be included in 6.8) since the flag only used in one
place for now (WP_Theme_JSON:merge) and only in the context of merging
background images, which do not yet support block style variations.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62399>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list