Use get_term_children() and get_term_field(). see #4189

git-svn-id: https://develop.svn.wordpress.org/trunk@5660 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-06-06 16:13:12 +00:00
parent 4feb85438d
commit e1ef29586c
2 changed files with 6 additions and 8 deletions

View File

@@ -172,8 +172,8 @@ function category_description($category = 0) {
global $cat;
if ( !$category )
$category = $cat;
$category = & get_category($category);
return apply_filters('category_description', $category->description, $category->term_id);
return get_term_field('description', $category, 'category');
}
function wp_dropdown_categories($args = '') {