From c2707e1ff651d5b7e3780a1bc9dccd2e7c5e414c Mon Sep 17 00:00:00 2001 From: shyambaseapp Date: Thu, 7 Nov 2024 12:38:01 +0530 Subject: [PATCH] update list table file --- .../class-wpoven-smtp-suresend-list-table.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/source/includes/class-wpoven-smtp-suresend-list-table.php b/source/includes/class-wpoven-smtp-suresend-list-table.php index 7a912bf..f00b579 100755 --- a/source/includes/class-wpoven-smtp-suresend-list-table.php +++ b/source/includes/class-wpoven-smtp-suresend-list-table.php @@ -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']); @@ -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(); @@ -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)