[wp-trac] [WordPress Trac] #15063: Add a "context" property to WP_Query as a 2nd param to its constructor

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 7 22:17:21 UTC 2010


#15063: Add a "context" property to  WP_Query as a 2nd param to its constructor
--------------------------+-------------------------------------------------
 Reporter:  mikeschinkel  |        Owner:                 
     Type:  enhancement   |       Status:  closed         
 Priority:  normal        |    Milestone:  Awaiting Review
Component:  Post Types    |      Version:                 
 Severity:  normal        |   Resolution:  wontfix        
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by markjaquith):

  * status:  new => closed
  * resolution:  => wontfix


Comment:

 If you're making the WP_Query, you can just do:

 {{{
 $myfoo->set_context( 'my-movie-list' );
 $query = new WP_Query( ... );
 $myfoo->reset_context();
 }}}

 Or, even just extend WP_Query. For instance, we have "GO_Query" at GigaOM
 that does all sorts of caching and magic.

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


More information about the wp-trac mailing list