[wp-trac] [WordPress Trac] #23309: Not all WP_Query::query_vars get updated during WP_Query::get_posts()

WordPress Trac noreply at wordpress.org
Mon Jan 28 19:39:23 UTC 2013


#23309: Not all WP_Query::query_vars get updated during WP_Query::get_posts()
--------------------------+------------------------------
 Reporter:  prettyboymp   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------
Changes (by prettyboymp):

 * keywords:  reporter-feedback =>


Comment:

 The issues is places in WP_Query::get_posts() like
 http://core.trac.wordpress.org/browser/trunk/wp-includes/query.php#L2222
 use additional logic to build the post_type clauses but never update the
 query_vars with the outcome.  Similar things are happening in this block
 for post_status:  http://core.trac.wordpress.org/browser/trunk/wp-
 includes/query.php#L2437.

 In my specific use case, I'm trying to build a boolean query to send to
 Amazon CloudSearch.  However, at no point during the WP_Query process are
 the query_vars in an absolute state.  My only option is to copy/paste the
 logic from WP_Query::get_posts() to my plugin to fill in these gaps.

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


More information about the wp-trac mailing list