From e2a9845a945f25398a2279442cbfc1a3c558a87c Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 29 May 2007 23:06:46 +0000 Subject: [PATCH] Add missing taxonomy argument. Props nbachiyski. fixes #4362 see #4189 git-svn-id: http://svn.automattic.com/wordpress/trunk@5595 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/category.php b/wp-includes/category.php index 192a2802e..a1cca7207 100644 --- a/wp-includes/category.php +++ b/wp-includes/category.php @@ -44,7 +44,7 @@ function get_category_by_path($category_path, $full_match = true, $output = OBJE $path = '/' . $leaf_path; $curcategory = $category; while ( ($curcategory->parent != 0) && ($curcategory->parent != $curcategory->term_id) ) { - $curcategory = get_term($curcategory->parent); + $curcategory = get_term($curcategory->parent, 'category'); $path = '/' . $curcategory->slug . $path; }