diff --git wp-admin/includes/class-wp-terms-list-table.php wp-admin/includes/class-wp-terms-list-table.php
index c87ae69..b41dd60 100644
|
|
|
class WP_Terms_List_Table extends WP_List_Table { |
| 117 | 117 | ); |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | | function display_rows() { |
| | 120 | function display_rows_or_placeholder() { |
| 121 | 121 | global $taxonomy; |
| 122 | 122 | |
| 123 | 123 | $args = wp_parse_args( $this->callback_args, array( |
| … |
… |
class WP_Terms_List_Table extends WP_List_Table { |
| 134 | 134 | // convert it to table rows |
| 135 | 135 | $out = ''; |
| 136 | 136 | $count = 0; |
| | 137 | |
| | 138 | $terms = array(); |
| | 139 | |
| 137 | 140 | if ( is_taxonomy_hierarchical( $taxonomy ) && !isset( $orderby ) ) { |
| 138 | 141 | // We'll need the full set of terms then. |
| 139 | 142 | $args['number'] = $args['offset'] = 0; |
| … |
… |
class WP_Terms_List_Table extends WP_List_Table { |
| 152 | 155 | $out .= $this->single_row( $term, 0, $taxonomy ); |
| 153 | 156 | $count = $number; // Only displaying a single page. |
| 154 | 157 | } |
| 155 | | |
| 156 | | echo $out; |
| | 158 | |
| | 159 | if ( empty( $terms ) ) { |
| | 160 | echo '<tr class="no-items"><td colspan="2">'; |
| | 161 | $this->no_items(); |
| | 162 | echo '</td></tr>'; |
| | 163 | } else { |
| | 164 | echo $out; |
| | 165 | } |
| 157 | 166 | } |
| 158 | 167 | |
| 159 | 168 | function _rows( $taxonomy, $terms, &$children, $start = 0, $per_page = 20, &$count, $parent = 0, $level = 0 ) { |