Ticket #8494: xmlrpc.php.2.diff

File xmlrpc.php.2.diff, 644 bytes (added by josephscott, 4 years ago)
Line 
1Index: xmlrpc.php
2===================================================================
3--- xmlrpc.php  (revision 10204)
4+++ xmlrpc.php  (working copy)
5@@ -2761,7 +2761,8 @@
6                        foreach ( $cats as $cat ) {
7                                $struct['categoryId'] = $cat->term_id;
8                                $struct['parentId'] = $cat->parent;
9-                               $struct['description'] = $cat->description;
10+                               $struct['description'] = $cat->name;
11+                               $struct['categoryDescription'] = $cat->description;
12                                $struct['categoryName'] = $cat->name;
13                                $struct['htmlUrl'] = wp_specialchars(get_category_link($cat->term_id));
14                                $struct['rssUrl'] = wp_specialchars(get_category_feed_link($cat->term_id, 'rss2'));