function process_bulk_action()
 {
     if ('delete' === $this->current_action()) {
         foreach ($_POST['item'] as $id) {
             RE_Log::delete(intval($id));
         }
     }
 }
Exemplo n.º 2
0
 public function ajax_log_delete()
 {
     if (check_ajax_referer('redirection-items')) {
         if (preg_match_all('/=(\\d*)/', $_POST['checked'], $items) > 0) {
             foreach ($items[1] as $item) {
                 RE_Log::delete(intval($item));
             }
         }
     }
 }