[wp-trac] [WordPress Trac] #8494: XMLRPC returns category name instead of category description

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 4 23:24:33 GMT 2008


#8494: XMLRPC returns category name instead of category description
------------------------+---------------------------------------------------
 Reporter:  zwettemaan  |       Owner:  josephscott
     Type:  defect      |      Status:  new        
 Priority:  normal      |   Milestone:  2.7        
Component:  XML-RPC     |     Version:  2.6.1      
 Severity:  normal      |    Keywords:             
------------------------+---------------------------------------------------
 I am using the XML-RPC interface into wordpress, and when I use the
 wp.getCategories XML-RPC call, I get the category name twice in the
 returned data - instead of the category description, the category name is
 repeated.

 The problem comes from the routine mw_getCategories inside xmlrpc.php - it
 reads:

 function mw_getCategories($args) {
 ...
   $struct['description'] = $cat->name;
   $struct['categoryName'] = $cat->name;
 ...
   return $categories_struct;
 }

 whereas I'd expect it to be

 function mw_getCategories($args) {
 ...
   $struct['description'] = $cat->description; //<<<<<
   $struct['categoryName'] = $cat->name;
 ...
   return $categories_struct;
 }

 I checked the 2.7RC1 - the same problem exists there.

 Is this a feature or a bug? Not sure how I should go about this - I am an
 old developer, but new to WordPress, so I don't know the proper
 'etiquette' yet...

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8494>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list