-
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
Fix shortcode not showing in the widgets screen #29282
Conversation
Size Change: 0 B Total Size: 1.38 MB ℹ️ View Unchanged
|
I think it was an explicit decision to avoid supporting shortcodes in these new screens. Can't we remove the block in these screens instead? |
I thought that I've read similar discussions somewhere, but couldn't remember where 🤔. |
I think @azaozz might remember this but yeah it's an oldish which we'd have a hard time finding :) |
@youknowriad I don't remember either taking such a decision. People use shortcodes to edit their sidebars so removing the block would make this new screen less functional than the old one. Also, what would be the advantage of not supporting such a block, as long as we edit the same old "sidebars"? |
This decision was made a long time ago :) and the reasoning is:
=> Don't support deprecated APIs in new things like FSE or widget screen. |
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.
Shortcodes are a functional element of the widget admin screen that we're trying to update here, so we should aim for feature partiy with the old screen. Fixing a bug with displaying them is therefore a good step in this direction.
On @youknowriad 's concern of trying to not bring along deprecated features into new things, it is a good perspective but it does not apply to this work here or to the navigation block editor as these editors aim to update old functionality, they're not new per se - as, say, the site editor is.
Description
Fix #27793.
Add
do_shortcode()
to the widgets screen.Also fixed flaky widgets e2e tests, as it turns out it's no longer expected to move focus to the newly added blocks.
How has this been tested?
Added e2e test, or:
[video src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"]
Types of changes
Bug fix
Checklist: