[wp-trac] [WordPress Trac] #54751: Invalid argument in class-wp-list-util.php

WordPress Trac noreply at wordpress.org
Wed Apr 6 20:38:10 UTC 2022


#54751: Invalid argument in class-wp-list-util.php
-------------------------------------------------+-------------------------
 Reporter:  marv2                                |       Owner:
                                                 |  peterwilsoncc
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.0
Component:  General                              |     Version:  3.1
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  good-first-bug has-patch has-unit-   |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by RMarks):

 Should a condition be added to see if the array is empty?  The error below
 was encountered when the array was empty:

 {{{
 Warning: Invalid argument supplied for foreach() in /code/wp-includes
 /class-wp-list-util.php on line 165
 }}}

 Or should I open a new ticket?

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


More information about the wp-trac mailing list