[wp-trac] [WordPress Trac] #18092: wp_list_filter() OR operator doesn't work

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 13 04:02:18 UTC 2011


#18092: wp_list_filter() OR operator doesn't work
--------------------------+-----------------------------
 Reporter:  kevinB        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.2
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 wp_list_filter() always returns all elements when the OR operator is
 passed. This affects corresponding usage of get_post_types(),
 get_taxonomies(), get_post_stati().

 The following call should return only private and public stati, but
 actually returns all:

 {{{
 $all_stati = get_post_stati( array( 'private' => true, 'public' => true ),
 'names', 'OR' );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18092>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list