Ticket #33148: class-wp-terms-list-table.diff
File class-wp-terms-list-table.diff, 768 bytes (added by , 9 years ago) |
---|
-
src/wp-admin/includes/class-wp-terms-list-table.php
272 272 if ( $count >= $end ) 273 273 break; 274 274 275 if ( $term->parent != $parent && empty( $_REQUEST['s'] ) ) 276 continue; 275 if ( $term->parent != $parent && empty( $_REQUEST['s'] ) ){ 277 276 277 if ( !is_null( get_term( $term->parent, $taxonomy ) ) || ( $parent != 0 ) ){ 278 continue; 279 } 280 } 281 278 282 // If the page starts in a subtree, print the parents. 279 283 if ( $count == $start && $term->parent > 0 && empty( $_REQUEST['s'] ) ) { 280 284 $my_parents = $parent_ids = array();