Consider deprecating "function widgets" #33104
Labels
[Block] Legacy Widget
Affects the Legacy Widget Block - used for displaying Classic Widgets
[Feature] Widgets Customizer
Ability to add and edit blocks in Customize → Widgets.
[Feature] Widgets Screen
The block-based screen that replaced widgets.php.
[Package] Edit Widgets
/packages/edit-widgets
Description
This issue is all about function widgets like the Marquee Widget. They are a special case of widgets and the new editor has a few problems with handling them:
There are two ways of approaching these bugs:
The latter approach has some limitations. For example, there’s an implicit assumption that there’s just one instance of any function widget, which means that adding more than one of them and clicking the "Update" button would effectively update the same database entry multiple times. On the other hand, we could add
$is_multi = false
to suchWP_Widget
to simulate that behaviour in a less weird way. On yet another hand, we could just wear the weirdness and say “it’s deprecated, tread carefully!” in some place in the UI.That being said, I am a big proponent of deprecating function widgets and would like to discuss it here.
cc @noisysocks @draganescu @talldan @kevin940726 @gziolo @spacedmonkey @ellatrix @hellofromtonya @getdave
The text was updated successfully, but these errors were encountered: