From 74805864940c2526569f4a7e5f0ae7978ac00d7c Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 29 May 2007 23:06:46 +0000 Subject: [PATCH] Add missing taxonomy argument. Props nbachiyski. fixes #4362 see #4189 git-svn-id: https://develop.svn.wordpress.org/trunk@5595 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 192a2802e0..a1cca72077 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; }