diff --git a/auto-bulb-finder.php b/auto-bulb-finder.php index b5d98fa..5410e10 100755 --- a/auto-bulb-finder.php +++ b/auto-bulb-finder.php @@ -3,7 +3,7 @@ Plugin Name: Auto Bulb Finder for WP & WC Plugin URI: https://auto.mtoolstec.com Description: Year/Make/Model/BodyType/Qualifer automoive bulb size querying system for vehicles from 1960 to 2022. Online database or custom vehicle list. Add to any page or content by a shortcode [abf]. -Version: 2.4.3 +Version: 2.4.4 Author: MTools Tec Author URI: https://shop.mtoolstec.com/about-us/ License: GPL diff --git a/readme.txt b/readme.txt index 7b56f0e..96adc6c 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Donate link: https://auto.mtoolstec.com/donate Requires at least: 6.0 Tested up to: 6.1.1 Requires PHP: 7.4 -Stable tag: 2.4.2 +Stable tag: 2.4.4 License: GPL v2 License URI: https://auto.mtoolstec.com/license diff --git a/templates/admin/vehicles/class-abfinder-vehicles-list.php b/templates/admin/vehicles/class-abfinder-vehicles-list.php index f8fa36b..57628c9 100755 --- a/templates/admin/vehicles/class-abfinder-vehicles-list.php +++ b/templates/admin/vehicles/class-abfinder-vehicles-list.php @@ -68,7 +68,7 @@ public function prepare_items() { $search_val = ''; if (!empty($_REQUEST['s'])) { - $search_val = $_REQUEST['s']; + $search_val = sanitize_text_field($_REQUEST['s']); } $columns = $this->get_columns(); $sortable = $this->get_sortable_columns(); @@ -102,7 +102,7 @@ public function abfinder_qrecord_count($search_val) $table_name = $this->wpdb->prefix . 'abfinder_vehicles'; $table_name_post = $this->wpdb->prefix . 'posts'; if ('' !== $search_val) { ?> - Search results for: + Search results for: wpdb->get_var("SELECT COUNT(*) FROM $table_name");