[wp-trac] [WordPress Trac] #28216: Allow to register pre-instantiated widgets

WordPress Trac noreply at wordpress.org
Fri Apr 29 18:48:30 UTC 2016


#28216: Allow to register pre-instantiated widgets
-------------------------------+--------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  westonruter
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  4.6
Component:  Widgets            |     Version:  3.9.1
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch commit   |     Focuses:
-------------------------------+--------------------------
Changes (by westonruter):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37329"]:
 {{{
 #!CommitTicketReference repository="" revision="37329"
 Widgets: Allow `WP_Widget` subclass instances (objects) to be
 registered/unregistered in addition to `WP_Widget` subclass names
 (strings).

 Allows widgets to be registered which rely on dependency injection. Also
 will allow for new widget types to be created dynamically (e.g. a Recent
 Posts widget for each registered post type).

 See #35990.
 Props mdwheele, PeterRKnight, westonruter.
 Fixes #28216.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28216#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list