Ticket #4362: get-term-param-omitted.diff
File get-term-param-omitted.diff, 526 bytes (added by , 16 years ago) |
---|
-
wp-includes/category.php
44 44 $path = '/' . $leaf_path; 45 45 $curcategory = $category; 46 46 while ( ($curcategory->parent != 0) && ($curcategory->parent != $curcategory->term_id) ) { 47 $curcategory = get_term($curcategory->parent );47 $curcategory = get_term($curcategory->parent, 'category'); 48 48 $path = '/' . $curcategory->slug . $path; 49 49 } 50 50