[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
Thu Aug 28 16:07:55 UTC 2025


#57469: retrieve_widgets(): fatal error when a sidebar's widgets set to null (array
is expected)
-------------------------------------------------+-------------------------
 Reporter:  kesselb                              |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Widgets                              |     Version:  4.9
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-unit-tests needs-    |     Focuses:
  testing                                        |
-------------------------------------------------+-------------------------
Changes (by mindctrl):

 * keywords:  has-patch => has-patch needs-unit-tests needs-testing


Comment:

 @lakshyajeet could you add some unit tests for this to confirm desired
 behavior and to prevent regressions?

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


More information about the wp-trac mailing list