[wp-trac] [WordPress Trac] #9951: Add [taxonomy]__in, [taxonomy]__not_in to wp_query

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 2 09:50:06 UTC 2009


#9951: Add [taxonomy]__in, [taxonomy]__not_in to wp_query
-------------------------+--------------------------------------------------
 Reporter:  joehoyle     |       Owner:  filosofo                     
     Type:  enhancement  |      Status:  new                          
 Priority:  normal       |   Milestone:  2.9                          
Component:  Taxonomy     |     Version:  2.8                          
 Severity:  normal       |    Keywords:  has-patch needs-review tested
-------------------------+--------------------------------------------------
Changes (by willmot):

 * cc: willmot (added)
  * keywords:  has-patch needs-review => has-patch needs-review tested


Comment:

 I have tested this against Wordpress 2.8.4 on a large site that is soon to
 be released.

 The $join on line 1925 is not needed (it joins the taxonomy and term
 tables on when they are not used in the WHERE). Removing it speeds things
 up considerably, especially on installs which have thousands of terms.

 Attached patch simply removes said line.

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


More information about the wp-trac mailing list