-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix: Don't render the Transform Into panel if there are no patterns #59217
Fix: Don't render the Transform Into panel if there are no patterns #59217
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is working as intended, thanks!
Size Change: +2 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
fc6cf9e
to
11db58f
Compare
Themes may want to define patterns for alternative templates that are not the one present on the template they are replacing, we shouldn't assume that a theme will do exactly like TT4 does, if there's a pattern for the template, it should show |
Flaky tests detected in 11db58f. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7976589592
|
Follow up to #55091.
Fixes a bug where the "Transform into" panel is still displayed even if there are no patterns for a template type.
Updates the code to render patterns even if there is only one pattern for the template type as suggested by @MaggieCabrera. Previously it needed at least two patterns for a template type for patterns to be shown.
Testing Instructions
When the 2024 theme is active, go to the site editor and check if the "Transforms Into" panel is not displayed on the 404 template.