Skip to content

Commit

Permalink
final v1.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
shyambaseapp committed Nov 7, 2024
1 parent f506194 commit aee8dc9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Binary file removed releases/wpoven-smtp-suresend-2024-11-07.zip
Binary file not shown.
7 changes: 0 additions & 7 deletions source/includes/class-wpoven-smtp-suresend-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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);
}

Expand Down

0 comments on commit aee8dc9

Please sign in to comment.