From be64fe678cbd77e1a775533d2eb56b3864dc50d1 Mon Sep 17 00:00:00 2001 From: Dan0sz <18595395+Dan0sz@users.noreply.github.com> Date: Thu, 6 Jun 2024 20:06:05 +0200 Subject: [PATCH] Removed redundant typecast. --- src/Actions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Actions.php b/src/Actions.php index 4627d54b..e4b94569 100644 --- a/src/Actions.php +++ b/src/Actions.php @@ -90,7 +90,7 @@ public function maybe_register_assets() { [ 'props' => [ 'search_query' => get_search_query(), - 'result_count' => intval( $wp_query->found_posts ), + 'result_count' => $wp_query->found_posts, ], ] );