[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
Mon Jun 10 12:48:57 UTC 2024


#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:
Component:  Widgets                   |     Version:  4.9
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------
Changes (by janthiel):

 * keywords:  php80 close => has-patch has-unit-tests


Comment:

 @hellofromTonya just wanted to re-ping you about this issue. It seems
 obvious that this is not related to a specific Theme doing something wrong
 as detailed within this ticket. The broken data might just be inserted by
 any Theme or Plugin without the knowledge of the user.

 Then when switching from <any> Theme to twenty24 for example the site is
 broken. Causing frustration as the "old" theme obviously worked before.

 There are two fixes. One as a patch and the other one in:
 https://core.trac.wordpress.org/ticket/57469#comment:11

 We tested the second one and as simple as it is, it simply works ;-)
 Should be a safe ticket for 6.6 as it has no real negative impact at all.
 Shouldn't it?

 What do you mean?

 Thank you!

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


More information about the wp-trac mailing list