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

WordPress Trac noreply at wordpress.org
Fri Apr 1 05:54:53 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                                          |
Changes (by peterwilsoncc):

 * owner:  (none) => peterwilsoncc
 * status:  new => closed
 * resolution:   => fixed


 In [changeset:"53045" 53045]:
 #!CommitTicketReference repository="" revision="53045"
 General: Validate input of `wp_list_pluck()`.

 `wp_list_pluck()` is used by WordPress to pluck items from a list. Of
 course, this requires a list. This validates the input of
 `wp_list_pluck()` to ensure it is a list.

 This matches the behaviour of `wp_list_sort()` and

 Props marv2, davidbaumwald, mkox, SergeyBiryukov, dd32.
 Fixes #54751.

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

More information about the wp-trac mailing list