Bug: WP 2.7 RC2. XMLRPC – getCategories
-
Found a bug introduced in RC2.
XMLRPC function “metaWeblog.getCategories” wouldn’t work if any of the categories doesn’t have a description. Error ” -2: Key [description] not found” is returned.
If I assign descriptions to all categories the function work. If I remove even one category’s description, the function returns error.
Very nasty bug since the default “Uncategorized” category usually doesn’t have any description.
This bug will prevent offline blog clients from being able to load categories from server (this function is used almost every time to synchronize a client with the server)
Here is the change in the code:
xmlrpc.php: function mw_getCategories($args)
——-
was (RC1):
$struct[‘parentId’] = $cat->parent;
$struct[‘description’] = $cat->name;
——-
now (RC2):
$struct[‘parentId’] = $cat->parent;
$struct[‘description’] = $cat->description;
——-
No check whether $cat->description exists.
- The topic ‘Bug: WP 2.7 RC2. XMLRPC – getCategories’ is closed to new replies.