[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 14:13:40 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 xitromedia):

 id did not find that rule in the documentation to not change the
 'tax_query' parameter 'include_children'. what sense does it make if it
 must not be changed manually ?

 but anyway....and only theoretically....i think the way i wanted to go by
 modifying the 'tax_query' should not harm in the state of 'pre_get_posts',
 if it is restricted to a specific category posts-query.
 but this cannot work as expected because parse_tax_query() checks
 'tax_query' although it never gets it (see my first post).
 because of that any individual setting to 'include_children' - no matter
 whether done by me or by WP - will get lost/set to default i think.

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


More information about the wp-trac mailing list