Changeset 17025
- Timestamp:
- 12/17/2010 11:17:41 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-terms-list-table.php
r16992 r17025 118 118 } 119 119 120 function display_rows () {120 function display_rows_or_placeholder() { 121 121 global $taxonomy; 122 122 … … 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. … … 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
Note: See TracChangeset
for help on using the changeset viewer.