mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-27 18:16:08 +00:00
git-svn-id: http://svn.automattic.com/wordpress/trunk@5595 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
083dfb059b
commit
e2a9845a94
@ -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…
x
Reference in New Issue
Block a user