-
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
Legacy Widget: Add 'Convert to blocks' button for text widgets #31215
Conversation
Size Change: +76 B (0%) Total Size: 1.39 MB
ℹ️ View Unchanged
|
0c374aa
to
a1786a8
Compare
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.
Works very well!
Is there a goal to add block conversions for more types of widget?
We should have a transform for every core widget that has a block equivalent. Are you seeing any that we missed? |
I didn't realise that. I thought this might be the only place we have a transform. |
Description
Closes #25100.
Requires #30889.
Adds a 'Convert to blocks' button to the Legacy Widget block when a text widget is loaded. This uses the same mechanism that the Classic block uses.
How has this been tested?
wp-admin/widgets.php
and add a Text widget with someh1
s, etc.Screenshots
Checklist:
*.native.js
files for terms that need renaming or removal).