- Timestamp:
- 07/01/2019 12:50:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-terms-list-table.php
r44804 r45583 227 227 $number = $args['number']; 228 228 229 $args['offset'] = $offset = ( $page - 1 ) * $number; 229 $offset = ( $page - 1 ) * $number; 230 $args['offset'] = $offset; 230 231 231 232 // Convert it to table rows. … … 234 235 if ( is_taxonomy_hierarchical( $taxonomy ) && ! isset( $args['orderby'] ) ) { 235 236 // We'll need the full set of terms then. 236 $args['number'] = $args['offset'] = 0; 237 $args['number'] = 0; 238 $args['offset'] = $args['number']; 237 239 } 238 240 $terms = get_terms( $taxonomy, $args ); … … 286 288 // If the page starts in a subtree, print the parents. 287 289 if ( $count == $start && $term->parent > 0 && empty( $_REQUEST['s'] ) ) { 288 $my_parents = $parent_ids = array(); 290 $my_parents = array(); 291 $parent_ids = array(); 289 292 $p = $term->parent; 290 293 while ( $p ) {
Note: See TracChangeset
for help on using the changeset viewer.