[wp-trac] Re: [WordPress Trac] #9886: Cannot reliably add query arguments to all WP_Query objects

WordPress Trac wp-trac at lists.automattic.com
Wed May 20 16:16:33 GMT 2009


#9886: Cannot reliably add query arguments to all WP_Query objects
--------------------------+-------------------------------------------------
 Reporter:  westi         |       Owner:  westi
     Type:  defect (bug)  |      Status:  new  
 Priority:  normal        |   Milestone:  2.8  
Component:  Plugins       |     Version:       
 Severity:  normal        |    Keywords:       
--------------------------+-------------------------------------------------

Comment(by westi):

 Replying to [comment:2 Denis-de-Bernardy]:
 > can't this work: if ( $this == $wp_the_query ) ?

 Not sure what you are suggesting here.

 We need to pass the $this to the filters so that the plugin can call
 $this->blah to access the query it is filtering.

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


More information about the wp-trac mailing list