[wp-trac] [WordPress Trac] #61451: Improve performance of block style variation registration and retrieval
WordPress Trac
noreply at wordpress.org
Mon Jun 24 08:50:10 UTC 2024
#61451: Improve performance of block style variation registration and retrieval
-------------------------------------------------+-------------------------
Reporter: aaronrobertshaw | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.6
Component: Editor | Version: trunk
Severity: normal | Resolution:
Keywords: gutenberg-merge has-patch has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by oandregal):
In [changeset:"58466" 58466]:
{{{
#!CommitTicketReference repository="" revision="58466"
Section styles: improve performance and conceptual consistency.
These changes involve:
- Move shared variation definitions from styles.blocks.variations to
styles.variations
- Remove blockTypes from styles.variations.
- Do not register shared variations from theme style variation or primary
theme.json files.
- Move the merging of theme.json data into the WP_Theme_JSON_Resolver and
WP_Theme_JSON classes.
These changes improve performance and are more future-proof API wise.
See conversation at https://github.com/WordPress/gutenberg/issues/62686
Props aaronrobertshaw, oandregal, andrewserong, joemcgill, talldanwp,
andrewserong, ramonopoly, richtabor, youknowriad.
See #61312, #61451.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61451#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list