Skip to content

Commit

Permalink
Merge pull request #229 from pau1phi11ips/patch-1
Browse files Browse the repository at this point in the history
Trim the search query
  • Loading branch information
Dan0sz authored Nov 6, 2024
2 parents 4bf56f1 + e84f79a commit deed8ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function maybe_register_assets() {
$data = wp_json_encode(
[
'props' => [
'search_query' => get_search_query(),
'search_query' => trim(get_search_query()),
'result_count' => $wp_query->found_posts,
],
]
Expand Down

0 comments on commit deed8ae

Please sign in to comment.