Commit b0aefcf
committed
General: Validate input of
`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 `wp_filter_object_list()`.
Props marv2, davidbaumwald, mkox, SergeyBiryukov, dd32.
Fixes #54751.
git-svn-id: https://develop.svn.wordpress.org/trunk@53045 602fd350-edb4-49c9-b593-d223f7449a82wp_list_pluck().1 parent a20c207 commit b0aefcf
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5176 | 5176 | | |
5177 | 5177 | | |
5178 | 5178 | | |
| 5179 | + | |
| 5180 | + | |
| 5181 | + | |
| 5182 | + | |
5179 | 5183 | | |
5180 | 5184 | | |
5181 | 5185 | | |
| |||
0 commit comments