[wp-trac] [WordPress Trac] #57518: Undefined array key in widgets.php on line 919

WordPress Trac noreply at wordpress.org
Sat Jan 10 18:28:37 UTC 2026


#57518: Undefined array key in widgets.php on line 919
-------------------------------------------------+-------------------------
 Reporter:  sageth                               |       Owner:
                                                 |  westonruter
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  7.0
Component:  Widgets                              |     Version:  2.8
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch needs-testing has-unit-    |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------
Changes (by westonruter):

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


Comment:

 In [changeset:"61466" 61466]:
 {{{
 #!CommitTicketReference repository="" revision="61466"
 Widgets: Ensure a widget is registered prior to checking its ID in
 `is_active_widget()`.

 This avoids a possible PHP warning due to an undefined array key.

 Developed in https://github.com/WordPress/wordpress-develop/pull/10710

 Follow-up to [11090], [7080].

 Props sageth, josephscott, Ipstenu, mindctrl, westonruter.
 See #8441, #6023.
 Fixes #57518.
 }}}

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


More information about the wp-trac mailing list