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

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 21 02:23:47 UTC 2011


#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       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------------

Comment (by nacin):

 Attached file will implement `post_parent__in` and `not__in`. It'll noop
 automatically once it's implemented in core, if added to
 WP::$private_query_vars. Originally this had some other code:

 The other code I wrote avoided private_query_vars for the check and did
 this:
 {{{
         $qv_test = $wp_query->fill_query_vars( array() );
         if ( isset( $qv_test['post_parent__in'] ) )
                 return $where;
 }}}

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


More information about the wp-trac mailing list