Skip to content

Commit 3d5f9d8

Browse files
authored
Update search.php
Changes to query via slug, rather than term_id, since the new taxonomy `wporg-pattern-keyword` is used with slug.
1 parent f7ffec0 commit 3d5f9d8

File tree

1 file changed

+1
-1
lines changed
  • public_html/wp-content/plugins/pattern-directory/includes

1 file changed

+1
-1
lines changed

public_html/wp-content/plugins/pattern-directory/includes/search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function modify_es_query_args( $es_query_args, $wp_query ) {
150150
}
151151

152152
$filter['bool']['must'][] = [
153-
'terms' => [ "taxonomy.$taxonomy.term_id" => $term['terms'] ],
153+
'term' => [ "$taxonomy.slug" => $term['terms'] ],
154154
];
155155
}
156156
}

0 commit comments

Comments
 (0)