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

WordPress Trac noreply at wordpress.org
Wed Jul 24 01:28:44 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        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by maxaud):

 Instead of removing the if statement, what about checking to see if a
 tax_query is set?

 I managed to get around it by duplicating the code to my own class and
 filtering the where and join clauses but obviously I expected my tax_query
 to work on singular post/page otherwise I would have used is_singular() to
 check before applying tax_query.

 I would imagine changing it now would most likely mess with other people's
 working code because they most likely don't check for !is_singular()

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


More information about the wp-trac mailing list