git-svn-id: https://develop.svn.wordpress.org/trunk@5595 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
479ecdf5f8
commit
7480586494
@ -44,7 +44,7 @@ function get_category_by_path($category_path, $full_match = true, $output = OBJE
|
|||||||
$path = '/' . $leaf_path;
|
$path = '/' . $leaf_path;
|
||||||
$curcategory = $category;
|
$curcategory = $category;
|
||||||
while ( ($curcategory->parent != 0) && ($curcategory->parent != $curcategory->term_id) ) {
|
while ( ($curcategory->parent != 0) && ($curcategory->parent != $curcategory->term_id) ) {
|
||||||
$curcategory = get_term($curcategory->parent);
|
$curcategory = get_term($curcategory->parent, 'category');
|
||||||
$path = '/' . $curcategory->slug . $path;
|
$path = '/' . $curcategory->slug . $path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user