[wp-trac] [WordPress Trac] #13927: post_parent query var should accept an array

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 16 20:49:58 UTC 2010


#13927: post_parent query var should accept an array
-------------------------+--------------------------------------------------
 Reporter:  nacin        |       Owner:                
     Type:  enhancement  |      Status:  new           
 Priority:  normal       |   Milestone:  Future Release
Component:  Query        |     Version:                
 Severity:  normal       |    Keywords:                
-------------------------+--------------------------------------------------
 {{{
 if ( is_numeric($q['post_parent']) )
         $where .= $wpdb->prepare( " AND $wpdb->posts.post_parent = %d ",
 $q['post_parent'] );
 }}}

 It'd be nice to be able to either pass an array, or introduce
 post_parent!__in and !__not_in vars.

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


More information about the wp-trac mailing list