[wp-trac] [WordPress Trac] #41743: Using the_widget on a widget that has not been registered results in an undefined index notice.

WordPress Trac noreply at wordpress.org
Fri Sep 1 08:49:52 UTC 2017


#41743: Using the_widget on a widget that has not been registered results in an
undefined index notice.
--------------------------------------+-----------------------
 Reporter:  SeBsZ                     |       Owner:  obenland
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.9
Component:  Widgets                   |     Version:  2.8
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+-----------------------
Changes (by obenland):

 * owner:   => obenland
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41327"]:
 {{{
 #!CommitTicketReference repository="" revision="41327"
 Widgets: Add nudge for registered widgets

 Informs developers that widgets need to be registered before they can be
 displayed through `the_widget()`. Previously it would fail with an
 ambiguous
 undefined index notice.

 Props SeBsZ, mrasharirfan.
 Fixes #41743.
 }}}

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


More information about the wp-trac mailing list