src/wp-includes/class-walker-category.php 1 location
|
@@ 181-187 (lines=7) @@
|
178 |
|
} elseif ( $category->term_id == $_current_term->parent ) { |
179 |
|
$css_classes[] = 'current-cat-parent'; |
180 |
|
} |
181 |
|
while ( $_current_term->parent ) { |
182 |
|
if ( $category->term_id == $_current_term->parent ) { |
183 |
|
$css_classes[] = 'current-cat-ancestor'; |
184 |
|
break; |
185 |
|
} |
186 |
|
$_current_term = get_term( $_current_term->parent, $category->taxonomy ); |
187 |
|
} |
188 |
|
} |
189 |
|
} |
190 |
|
|
src/wp-admin/includes/ajax-actions.php 1 location
|
@@ 554-559 (lines=6) @@
|
551 |
|
$parent = get_term( $parent, $taxonomy->name ); |
552 |
|
$term_id = $parent->term_id; |
553 |
|
|
554 |
|
while ( $parent->parent ) { // get the top parent |
555 |
|
$parent = get_term( $parent->parent, $taxonomy->name ); |
556 |
|
if ( is_wp_error( $parent ) ) |
557 |
|
break; |
558 |
|
$term_id = $parent->term_id; |
559 |
|
} |
560 |
|
|
561 |
|
ob_start(); |
562 |
|
|