mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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 = '') {
|
||||
|
||||
Reference in New Issue
Block a user