Changeset 24123 for trunk/wp-admin/includes/class-wp-terms-list-table.php
- Timestamp:
- 04/29/2013 01:10:50 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-terms-list-table.php
r23563 r24123 137 137 138 138 // convert it to table rows 139 $out = '';140 139 $count = 0; 141 140 … … 153 152 154 153 // Some funky recursion to get the job done( Paging & parents mainly ) is contained within, Skip it for non-hierarchical taxonomies for performance sake 155 $ out .= $this->_rows( $taxonomy, $terms, $children, $offset, $number, $count );154 $this->_rows( $taxonomy, $terms, $children, $offset, $number, $count ); 156 155 } else { 157 156 $terms = get_terms( $taxonomy, $args ); 158 157 foreach ( $terms as $term ) 159 $ out .= $this->single_row( $term, 0, $taxonomy );158 $this->single_row( $term, 0, $taxonomy ); 160 159 $count = $number; // Only displaying a single page. 161 160 } … … 166 165 $this->no_items(); 167 166 echo '</td></tr>'; 168 } else {169 echo $out;170 167 } 171 168 } … … 175 172 $end = $start + $per_page; 176 173 177 $output = '';178 174 foreach ( $terms as $key => $term ) { 179 175 … … 200 196 $num_parents = count( $my_parents ); 201 197 while ( $my_parent = array_pop( $my_parents ) ) { 202 $output .= "\t" . $this->single_row( $my_parent, $level - $num_parents, $taxonomy ); 198 echo "\t"; 199 $this->single_row( $my_parent, $level - $num_parents, $taxonomy ); 203 200 $num_parents--; 204 201 } 205 202 } 206 203 207 if ( $count >= $start ) 208 $output .= "\t" . $this->single_row( $term, $level, $taxonomy ); 204 if ( $count >= $start ) { 205 echo "\t"; 206 $this->single_row( $term, $level, $taxonomy ); 207 } 209 208 210 209 ++$count; … … 213 212 214 213 if ( isset( $children[$term->term_id] ) && empty( $_REQUEST['s'] ) ) 215 $output .= $this->_rows( $taxonomy, $terms, $children, $start, $per_page, $count, $term->term_id, $level + 1 ); 216 } 217 218 return $output; 214 $this->_rows( $taxonomy, $terms, $children, $start, $per_page, $count, $term->term_id, $level + 1 ); 215 } 219 216 } 220 217 … … 226 223 227 224 echo '<tr id="tag-' . $tag->term_id . '"' . $row_class . '>'; 228 echo$this->single_row_columns( $tag );225 $this->single_row_columns( $tag ); 229 226 echo '</tr>'; 230 227 }
Note: See TracChangeset
for help on using the changeset viewer.