We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 293533a commit b4769ecCopy full SHA for b4769ec
src/wp-includes/blocks.php
@@ -2734,7 +2734,8 @@ function build_query_vars_from_query_block( $block, $page ) {
2734
// This is the new format e.g. "taxQuery":{"include":{"category":[4]},"exclude":{"post_tag":[5]}}
2735
2736
// Helper function to build tax_query conditions from taxonomy terms.
2737
- $build_conditions = static function ( array $terms, string $operator = 'IN' ): array {
+ $build_conditions = static function ( $terms, string $operator = 'IN' ): array {
2738
+ $terms = (array) $terms;
2739
$conditions = array();
2740
foreach ( $terms as $taxonomy => $tax_terms ) {
2741
if ( ! empty( $tax_terms ) && is_taxonomy_viewable( $taxonomy ) ) {
0 commit comments