From b517f1f7ef4535accb8f14f1d0bfd0c3e8867a56 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 16 Dec 2008 07:22:01 +0000 Subject: [PATCH] Return cat name and description. Props josephscott. fixes #8494 git-svn-id: https://develop.svn.wordpress.org/trunk@10205 602fd350-edb4-49c9-b593-d223f7449a82 --- xmlrpc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xmlrpc.php b/xmlrpc.php index 42a1239ba5..fe106873d9 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -2761,7 +2761,8 @@ class wp_xmlrpc_server extends IXR_Server { foreach ( $cats as $cat ) { $struct['categoryId'] = $cat->term_id; $struct['parentId'] = $cat->parent; - $struct['description'] = $cat->description; + $struct['description'] = $cat->name; + $struct['categoryDescription'] = $cat->description; $struct['categoryName'] = $cat->name; $struct['htmlUrl'] = wp_specialchars(get_category_link($cat->term_id)); $struct['rssUrl'] = wp_specialchars(get_category_feed_link($cat->term_id, 'rss2'));