1 ), ) );*/ $myListTable->process_bulk_action(); // before we do the search on messages. $this_search = $search; if (isset($this_search['shub_status']) && $this_search['shub_status'] == -1) { unset($this_search['shub_status']); } // SupportHub::getInstance()->load_all_messages($this_search, $order); // $all_messages = SupportHub::getInstance()->all_messages; $all_messages = array_merge(SupportHubOutbox::get_failed(), SupportHubOutbox::get_pending()); $limit_pages = 2; // get about 10 pages of data to display in WordPress. $has_more = false; if (count($all_messages) >= $myListTable->get_pagenum() * $myListTable->items_per_page + $limit_pages * $myListTable->items_per_page) { $has_more = true; // a flag so we can show "more" in the pagination listing. } // todo - hack in here some sort of cache so pagination works nicer ? //module_debug::log(array( 'title' => 'Finished social messages', 'data' => '', )); $myListTable->set_layout_type($layout_type); $myListTable->set_data($all_messages); $myListTable->prepare_items(); $myListTable->pagination_has_more = $has_more; ?> <form method="post" id="shub_search_form"> <div class="shub_header_box"> <input type="hidden" name="paged" value="<?php