-
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
Allow core widgets to be used in the legacy widgets block #15396
Allow core widgets to be used in the legacy widgets block #15396
Conversation
80e48d6
to
72616af
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.
72616af
to
661a13a
Compare
Thank you for the review @noisysocks 👍 The legacy widget does not work on the widgets page because we decided to use a reference system for the existing widgets, legacy widgets still don't support that system. |
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 looks good! 👍
One minor thing I'm noticing is that when you're viewing a built-in widget, clicking the 'Change widget' button takes you to the placeholder where you can't go back. I think it makes sense to remove the 'Change widget' button for built-in widgets.
@@ -29,6 +33,51 @@ import { ServerSideRender } from '@wordpress/editor'; | |||
*/ | |||
import LegacyWidgetEditHandler from './handler'; | |||
|
|||
const LegacyWidgetPlaceholder = ( { |
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.
Should we move this component to its own file ./placeholder.js
?
Hello
|
@wixaw: This feature is now behind an experiment setting. Have you enabled the experiment? You can do this in WP Admin under Gutenberg > Experiments. |
Hello I see the release note to 9.1.0 but i not understand where is now |
@youknowriad @noisysocks i need help please |
ok thank's, it's a shame not to be able to have our homemade plugins in our pages anymore. we are going to use siteorigin as before to integrate them. :/ |
The legacy widget block should not be able to allow users to use core legacy widgets for which we already have an equivalent block, but it should still load these widgets.
For example, if the user uses a calendar widget on the blocks widget screen we want to show the calendar widget inside the legacy widget, and then allow the user to convert it to the calendar block.
Currently, the legacy widget did not load the core blocks, this PR fixes this problem and makes sure the core blocks are correctly loaded, although the user can not select them when inserting a new legacy widget.
How has this been tested?
I created a new post.
I pasted the following code on the code editor:
I switched to the visual editor and verified the legacy widgets loaded correctly and I was able to preview them.