Changeset 44804
- Timestamp:
- 03/07/2019 03:03:57 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-terms-list-table.php
r43571 r44804 333 333 $this->level = $level; 334 334 335 echo '<tr id="tag-' . $tag->term_id . '">'; 335 if ( $tag->parent ) { 336 $count = count( get_ancestors( $tag->term_id, $taxonomy, 'taxonomy' ) ); 337 $level = 'level-' . $count; 338 } else { 339 $level = 'level-0'; 340 } 341 342 echo '<tr id="tag-' . $tag->term_id . '" class="' . $level . '">'; 336 343 $this->single_row_columns( $tag ); 337 344 echo '</tr>';
Note: See TracChangeset
for help on using the changeset viewer.