diff --git a/releases/wpoven-smtp-suresend-2024-11-07.zip b/releases/wpoven-smtp-suresend-2024-11-07.zip deleted file mode 100644 index 98a4371..0000000 Binary files a/releases/wpoven-smtp-suresend-2024-11-07.zip and /dev/null differ diff --git a/source/includes/class-wpoven-smtp-suresend-list-table.php b/source/includes/class-wpoven-smtp-suresend-list-table.php index 1a951d0..9e25e2a 100755 --- a/source/includes/class-wpoven-smtp-suresend-list-table.php +++ b/source/includes/class-wpoven-smtp-suresend-list-table.php @@ -87,7 +87,6 @@ function prepare_items() // Escape the search term and create wildcards for the LIKE condition $search_wildcards = '%' . $wpdb->esc_like($search_term) . '%'; - // Build query conditions manually and prepare placeholders $conditions = []; $args = []; // Prepare arguments for the placeholders @@ -96,14 +95,8 @@ function prepare_items() $conditions[] = "$column LIKE %s"; $args[] = $search_wildcards; // Append the escaped search term for each column } - // Combine conditions with "OR" $where_clause = implode(' OR ', $conditions); - - // Prepare and execute the query - //$query = "SELECT * FROM {$table_name} WHERE $where_clause"; - - // Execute the query with the arguments for each condition $this->table_data = $wpdb->get_results($wpdb->prepare("SELECT * FROM {$table_name} WHERE $where_clause", ...$args), ARRAY_A); }