When using a taxQuery in a query, the taxonomy relevant request type properties are not set correctly on WP_Query. So for example when querying a category $wp_query->is_category returns false even though it should be true. Or when combining a tag and category related query, e.g.
When using a
taxQuery
in a query, the taxonomy relevant request type properties are not set correctly onWP_Query
. So for example when querying a category$wp_query->is_category
returnsfalse
even though it should betrue
. Or when combining a tag and category related query, e.g.both
$wp_query->is_tag
and$wp_query->is_category
should be true.This was caused because the the taxonomy queries were nested inside an additional array in
map_input_fields
which caused the functionality in https://github.com/WordPress/WordPress/blob/32d761ce7dc8429f07469fde36e96830edca48f1/wp-includes/class-wp-query.php#L885 not to trigger.The query worked fine though, but plugins relating on the request type failed.