Closed ramonjd closed 3 days ago
Warning: Type of PR label mismatch
To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.
Warning: Type of PR label mismatch
To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot
label.
If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
Co-authored-by: mukeshpanchal27 <mukesh27@git.wordpress.org>
Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org>
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.
Thanks for the help and reviews, everyone!
What?
Backporting theme json performance optimizations from https://github.com/WordPress/wordpress-develop/pull/7586
Props @mukeshpanchal27
Why?
Reduce unnecessary calls to
::get_blocks_metadata()
.How?
Passing already-fetched data from
::get_blocks_metadata()
to::get_valid_block_style_variations(()
Testing Instructions
CI tests should pass. Smoke test a theme with style variations in the site editor.
Here's an example from https://github.com/WordPress/gutenberg/pull/57908 that you can add under
/styles
.