[wp-trac] [WordPress Trac] #24819: tax_query not executed on single post/page/etc

WordPress Trac noreply at wordpress.org
Tue Jul 23 01:08:55 UTC 2013


#24819: tax_query not executed on single post/page/etc
--------------------------+-----------------------------
 Reporter:  maxaud        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Query         |    Version:  3.5.2
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 in /wp-includes/query.php on line 2212 there is an if statement that
 blocks a tax_query filter from executing if is_single is true.

 In my particular use case, I need to use tax_query on single pages and
 posts and am surprised this is being blocked..

 My particular WordPress stops certain pages from displaying under certain
 circumstances dependent upon what term they belong to in a custom
 taxonomy. I see this ability becoming ever more common the more people use
 WordPress to create web apps and CMS platforms.

 http://core.trac.wordpress.org/browser/tags/3.5.2/wp-
 includes/query.php#L2212

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24819>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list