[wp-trac] [WordPress Trac] #16499: wp_list_filter() no longer watches for $list to be an array
WordPress Trac
wp-trac at lists.automattic.com
Wed Feb 9 05:27:25 UTC 2011
#16499: wp_list_filter() no longer watches for $list to be an array
--------------------------+-------------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: General | Version:
Severity: normal | Keywords: needs-patch
--------------------------+-------------------------
In 3.0, wp_filter_object_list() returned early if $list was not an array.
Now the call gets passed right to wp_list_filter(), which no longer does
the check.
Seen in the wild at http://wordpress.org/support/topic/wordpress-31-rc4
-warning-invalid-argument-supplied-for-foreach?replies=3.
Can probably just patch wp_filter_object_list() rather than the new
wp_list_filter().
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16499>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list