[wp-trac] [WordPress Trac] #18703: 'pre_get_posts'-filter without effect when modifying 'tax_query'. Wrong parameters passed to 'parse_tax_query() ??; WP 3.2.1.

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 19 13:32:26 UTC 2011


#18703: 'pre_get_posts'-filter without effect when modifying 'tax_query'. Wrong
parameters passed to 'parse_tax_query() ??; WP 3.2.1.
-------------------------------+----------------------------------
 Reporter:  xitromedia         |       Owner:  info@…
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  3.2.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+----------------------------------

Comment (by dd32):

 > i think the parameter 'include_children' is made for this ?!

 Yes, it is, but it shouldn't be modified the way you're doing it.

 Instead, you should remove the 'cat' param, and set the `'category__in'`
 param instead, which doesn't include children by default.

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


More information about the wp-trac mailing list