[wp-trac] [WordPress Trac] #56948: (WordPress 6.1) Trying to access array offset on value of type int in wp-includes/class-wp-list-util.php on line 170

WordPress Trac noreply at wordpress.org
Wed Nov 2 13:23:17 UTC 2022


#56948: (WordPress 6.1) Trying to access array offset on value of type int in wp-
includes/class-wp-list-util.php on line 170
--------------------------+---------------------
 Reporter:  konyoldeath   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.1.1
Component:  Query         |     Version:  6.1
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+---------------------

Comment (by lozula):

 I have the same issue, running a custom WP_Query with fields => ids
 specified as an argument results in the php warning above. Commenting out
 that line in my query solves the error but as all I need are the ids it
 seems like it would be less efficient.

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


More information about the wp-trac mailing list