/** * Render the body of the table. * * @access public * @since 8.2 * * @uses WP_List_Table::get_column_count() * @uses WP_List_Table::no_items() * @uses WP_List_Table::display_rows() * @uses CN_Term_Admin_List_Table::_rows() * @uses cnTerm::get_hierarchy() */ public function display_rows_or_placeholder() { $count = 0; if (empty($this->items)) { echo '<tr class="no-items"><td class="colspanchange" colspan="' . $this->get_column_count() . '">'; $this->no_items(); echo '</td></tr>'; return; } if (is_null($this->orderby)) { // Ignore children on searches. if (!empty($this->search)) { $children = array(); } else { $children = cnTerm::get_hierarchy($this->taxonomy); } // Some funky recursion to get the job done( Paging & parents mainly ) is contained within, // Skip it for non-hierarchical taxonomies for performance sake $this->_rows($this->taxonomy, $this->items, $children, $this->offset, $this->number, $count); } else { $this->display_rows(); } }