| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package FireBox |
| 4 | - * @version 3.1.9 Free | |
| 4 | + * @version 3.1.14 Free | |
| 5 | 5 | * |
| 6 | 6 | * @author FirePlugins <[email protected]> |
| 7 | 7 | * @link https://www.fireplugins.com |
| 8 | 8 | * @copyright Copyright © 2026 FirePlugins All Rights Reserved |
| @@ -33,14 +33,15 @@ | ||
| 33 | 33 | return; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | global $wpdb; |
| 37 | - $query = " | |
| 38 | - SELECT COUNT(id) as total | |
| 39 | - FROM {$wpdb->posts} | |
| 40 | - WHERE post_type = 'firebox' | |
| 41 | - AND post_status IN ('" . $status . "') | |
| 42 | - "; | |
| 37 | + $query = $wpdb->prepare( | |
| 38 | + "SELECT COUNT(id) as total | |
| 39 | + FROM {$wpdb->posts} | |
| 40 | + WHERE post_type = 'firebox' | |
| 41 | + AND post_status IN (%s)", | |
| 42 | + $status | |
| 43 | + ); | |
| 43 | 44 | $results = $wpdb->get_var($query); |
| 44 | 45 | return $results; |
| 45 | 46 | } |
| 46 | 47 | |