[wp-trac] [WordPress Trac] #57469: retrieve_widgets(): fatal error when a sidebar's widgets set to null (array is expected)

WordPress Trac noreply at wordpress.org
Fri Sep 12 18:03:32 UTC 2025


#57469: retrieve_widgets(): fatal error when a sidebar's widgets set to null (array
is expected)
---------------------------------------------+--------------------------
 Reporter:  kesselb                          |       Owner:  westonruter
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  6.9
Component:  Widgets                          |     Version:  4.9
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+--------------------------
Changes (by westonruter):

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


Comment:

 In [changeset:"60732" 60732]:
 {{{
 #!CommitTicketReference repository="" revision="60732"
 Widgets: Prevent fatal errors in PHP 8 when `retrieve_widgets()` and
 `wp_map_sidebars_widgets()` attempt to merge non-array values.

 Props kesselb, lakshyajeet, hellofromTonya, janthiel, ikriv, audrasjb,
 mtg169, bartnv, pmbaldha, mindctrl, westonruter, jrf.
 Fixes #57469.
 }}}

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


More information about the wp-trac mailing list