tax_query bug
-
Hello Chouby.
I think I found a bug in your method
PLL_Frontend::parse_query()
.
You do not filter the query if a tax query is set, and I understand why, BUT, there’s a case where you should :'operator' => 'NOT IN'
.So, inside your foreach loop:
if (isset($tax[‘taxonomy’]) && ‘post_format’ != $tax[‘taxonomy’])
should be:
if ( isset($tax[‘taxonomy’]) && ‘post_format’ != $tax[‘taxonomy’] && ! ( isset($tax[‘operator’]) && ‘NOT IN’ === $tax[‘operator’] ) )
Bye.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘tax_query bug’ is closed to new replies.