[wp-trac] [WordPress Trac] #33473: Shortcodes + Widgets. Unified "component" API (aka Content Blocks)
WordPress Trac
noreply at wordpress.org
Fri Mar 18 05:39:09 UTC 2016
#33473: Shortcodes + Widgets. Unified "component" API (aka Content Blocks)
-----------------------------+-----------------------------
Reporter: brentjett@… | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Future Release
Component: Widgets | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+-----------------------------
Comment (by westonruter):
Replying to [comment:8 brentjett@…]:
> The one major hurdle that I see in the WP_Widget API is that the main
widget array keys the declared widget types off the class name which
prevents any widget controller class from backing multiple types of
widgets. This is the reason, I think, that nobody has every written a good
"Build Your Own Widgets" type plugin. You can't base multiple widgets on a
single class and simply pass each instance some configuration data. Now if
that were able to change and the widget API could use some other unique
identifier, the opportunities to create this type of view object
dynamically from a UI explodes.
Wouldn't this be accomplished by #28216? It's something I'm planning to
commit early in 4.6.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33473#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list