Ticket #33148: taxonomy.diff
File taxonomy.diff, 641 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/taxonomy.php
4423 4423 $ancestors = get_ancestors( $term->term_id, $taxonomy, 'taxonomy' ); 4424 4424 foreach ( (array)$ancestors as $ancestor ) { 4425 4425 $ancestor_term = get_term($ancestor, $taxonomy); 4426 $hierarchical_slugs[] = $ancestor_term->slug; 4426 if ( $ancestor_term ){ 4427 $hierarchical_slugs[] = $ancestor_term->slug; 4428 } 4427 4429 } 4428 4430 $hierarchical_slugs = array_reverse($hierarchical_slugs); 4429 4431 $hierarchical_slugs[] = $slug;