Provide the widget preview iframe with a sidebar ID #33638
Labels
[Block] Legacy Widget
Affects the Legacy Widget Block - used for displaying Classic Widgets
[Feature] Extensibility
The ability to extend blocks or the editing experience
[Feature] Widgets Customizer
Ability to add and edit blocks in Customize → Widgets.
[Feature] Widgets Screen
The block-based screen that replaced widgets.php.
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
There is no way for a block/widget to identify and get data on the sidebar it’s been placed on.
Prior widget editor, we could get the sidebar id by the widget id, but in block-based widget editor it's impossible since widget id in the editor is not the actual widget id.
For example:
Reported here:
What is your proposed solution?
Add the current sidebar id variable to the block/widget instance in block-based widgets editor.
The text was updated successfully, but these errors were encountered: