'terms' => array
(),
'field' => 'term_id',
'operator' => 'IN',
'include_children' => true,
);
foreach ( $queries as $key =>
$query ) { if ( 'relation' ===
$key ) { $cleaned_query['relation'
] =
$this->
sanitize_relation( $query );
// First-order clause.
} elseif ( self::
is_first_order_clause( $query ) ) { $cleaned_clause =
array_merge( $defaults,
$query );
$cleaned_clause['terms'
] =
(array) $cleaned_clause['terms'
];
$cleaned_query[] =
$cleaned_clause;
/*
* Keep a copy of the clause in the flate
* $queried_terms array, for use in WP_Query.
*/
if ( !
empty( $cleaned_clause['taxonomy'
] ) && 'NOT IN' !==
$cleaned_clause['operator'
] ) { $taxonomy =
$cleaned_clause['taxonomy'
];