[wp-trac] [WordPress Trac] #57469: Uncaught Error: array_merge(): Argument #3 must be of type array, null given in wp-includes/widgets.php on line 1342

WordPress Trac noreply at wordpress.org
Thu Jan 19 22:19:31 UTC 2023


#57469: Uncaught Error: array_merge(): Argument #3 must be of type array, null
given in wp-includes/widgets.php on line 1342
-------------------------------------------------+---------------------
 Reporter:  kesselb                              |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:
Component:  Widgets                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  php8 has-patch has-unit-tests close  |     Focuses:
-------------------------------------------------+---------------------
Changes (by jrf):

 * keywords:  php8 has-patch has-unit-tests => php8 has-patch has-unit-tests
     close
 * milestone:  6.2 =>


Comment:

 @kesselb Thanks for the ticket.

 To be honest, this sounds like user error and something which should be
 fixed in the theme, not in WP Core.

 If anything, a `_doing_it_wrong` should be thrown when receiving invalid
 data (as is the case with your use-case).

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


More information about the wp-trac mailing list