[wp-trac] [WordPress Trac] #34172: wp_list_pluck missing checks
WordPress Trac
noreply at wordpress.org
Tue Oct 6 18:35:02 UTC 2015
#34172: wp_list_pluck missing checks
--------------------------+-----------------------------
Reporter: wpsmith | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: performance |
--------------------------+-----------------------------
If I use `wp_list_pluck()` to filter an array as a check to see if the
array contains any objects with a specific key, errors are thrown.
For example, given an array of objects with keys of `slug` and `name`, if
I check for ID, `wp_list_pluck` throws an error.
Here is a gist test: https://gist.github.com/wpsmith/91b8cab4d258133b32d3
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34172>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list