-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global Styles: Skip registration of variation styles when unsupported #62529
Global Styles: Skip registration of variation styles when unsupported #62529
Conversation
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress. If so, it is recommended to create a new Trac ticket and submit a pull request to the WordPress Core GitHub repository soon after this pull request is merged. If you're unsure, you can always ask for help in the #core-editor channel in WordPress Slack. Thank you! ❤️ View changed files❔ lib/block-supports/block-style-variations.php |
I'm holding off on merging this one for the moment. The solution would work nicely for block themes but also impacts hybrid themes. I'll take another run at this tomorrow. |
450576e
to
045c15a
Compare
f282c1f
to
303e91f
Compare
Flaky tests detected in 34f4768. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9542559209
|
…WordPress#62529) Co-authored-by: aaronrobertshaw <[email protected]> Co-authored-by: oandregal <[email protected]> Co-authored-by: andrewserong <[email protected]>
…#62529) Co-authored-by: aaronrobertshaw <[email protected]> Co-authored-by: oandregal <[email protected]> Co-authored-by: andrewserong <[email protected]>
…#62529) Co-authored-by: aaronrobertshaw <[email protected]> Co-authored-by: oandregal <[email protected]> Co-authored-by: andrewserong <[email protected]>
I just cherry-picked this PR to the wp/6.6-beta-3 branch to get it included in the next release: f0327a0 |
…#62529) Co-authored-by: aaronrobertshaw <[email protected]> Co-authored-by: oandregal <[email protected]> Co-authored-by: andrewserong <[email protected]>
What?
Prevents going through all the work of searching for theme.json partials, parsing them and the core theme.json etc when the theme doesn't have its own theme.json.
Why?
Performance and simplicity.
How?
Make a check to
wp_theme_has_theme_json()
and return early if applicable.Testing Instructions