[wp-trac] [WordPress Trac] #35087: Make sure $list in wp_list_pluck() is an array
WordPress Trac
noreply at wordpress.org
Tue Dec 15 18:28:58 UTC 2015
#35087: Make sure $list in wp_list_pluck() is an array
--------------------------+------------------------------
Reporter: josephscott | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: close | Focuses:
--------------------------+------------------------------
Comment (by swissspidy):
In [changeset:"35949"]:
{{{
#!CommitTicketReference repository="" revision="35949"
Ensure `wp_list_pluck()` throws a warning when not being passed an array.
We should not paper over the code and hide warnings from developers by
casting values to an array.
See #35087.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35087#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list