-
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
Widget Importer: Don't render controls when there's nothing to import #48396
Conversation
3521d72
to
4a8ef09
Compare
packages/block-library/src/template-part/edit/import-controls.js
Outdated
Show resolved
Hide resolved
Size Change: +395 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
Flaky tests detected in bb2a37c. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4260723844
|
packages/block-library/src/template-part/edit/import-controls.js
Outdated
Show resolved
Hide resolved
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.
Thank you George!
packages/block-library/src/template-part/edit/import-controls.js
Outdated
Show resolved
Hide resolved
I just cherry-picked this PR to the wp/6.2 branch to get it included in the next release: eec1d09 |
What?
Fixes #47982.
PR updates the
TemplatePartImportControls
to not render controls when there's nothing to import.Testing Instructions
Make sure there're no "Widget Areas" to import. For example, running the following command should work for testing:
Screenshots or screencast
CleanShot.2023-02-23.at.21.59.49.mp4