-
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
Widget Importer: Fix Widget Group block imports #48669
Conversation
Size Change: +107 B (0%) Total Size: 1.34 MB
ℹ️ View Unchanged
|
Flaky tests detected in 996af3a. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4312114997
|
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.
Tested and looks good, thank you!
The PR is ready for review, but it looks like the Widget editor is broken on Gutenberg trunk and WP 6.2 beta4. I'm seeing the following errors when trying to insert block widgets.
I couldn't reproduce that..
I just cherry-picked this PR to the wp/6.2 branch to get it included in the next release: 97fdf1f |
What?
Resolves #47081.
PR updates the Template Parts widget importer to convert Widget Group blocks into the Group block and adds logic to transform legacy widgets inside inner blocks.
Why?
See #47081.
How?
transformWidgetToBlock
to return already converted blocks to be used in the template.switchLegacyWidgetType
helper.Testing Instructions
Note: Only legacy widgets with available transformations will be added to the template part. Use the Classic Widgets plugin to test the core legacy widgets.
Screenshots or screencast