Skip to content

Commit

Permalink
update list table file
Browse files Browse the repository at this point in the history
  • Loading branch information
shyambaseapp committed Nov 7, 2024
1 parent ef094fb commit c2707e1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions source/includes/class-wpoven-smtp-suresend-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ function prepare_items()
);
}

$this->table_data = $wpdb->get_results($wpdb->prepare($query), ARRAY_A);

if (isset($_POST['action']) == 'delete_all' || isset($_POST['delete'])) {
if (isset($_POST['element']) && $_POST['action'] == 'delete_all') {
$selectedLogIds = array_map('absint', $_POST['element']);
Expand Down Expand Up @@ -122,7 +124,6 @@ function prepare_items()
wp_mail($to, $subject, $message, $headers, $attachments);
}

$this->table_data = $this->get_table_data($query);
$columns = $this->get_columns();
$subsubsub = $this->views();
$hidden = (is_array(get_user_meta(get_current_user_id(), 'aaa', true))) ? get_user_meta(get_current_user_id(), 'dff', true) : array();
Expand All @@ -149,11 +150,11 @@ function prepare_items()
}

// Get table data
private function get_table_data($query)
{
global $wpdb;
return $wpdb->get_results($query, ARRAY_A);
}
// private function get_table_data($query)
// {
// global $wpdb;
// return $wpdb->get_results($query, ARRAY_A);
// }

//Get column default
function column_default($item, $column_name)
Expand Down

0 comments on commit c2707e1

Please sign in to comment.