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.
2 parents deed8ae + 4e5b9ac commit 3d78de8Copy full SHA for 3d78de8
src/Actions.php
@@ -94,7 +94,8 @@ public function maybe_register_assets() {
94
$data = wp_json_encode(
95
[
96
'props' => [
97
- 'search_query' => trim(get_search_query()),
+ // convert queries to lowercase and remove trailing whitespace to ensure same terms are grouped together
98
+ 'search_query' => strtolower(trim(get_search_query())),
99
'result_count' => $wp_query->found_posts,
100
],
101
]
0 commit comments