[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:11:05 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 SergeyBiryukov):
Replying to [comment:4 swissspidy]:
> > This sounds like a good opportunity for a unit test to assert that a
non-array *does* throw a warning.
>
> [attachment:35087.2.diff] is a new patch that does exactly that. Will
commit if it looks good.
Looks good to me.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35087#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list