Don't use deprecated category properties. Props filosofo. Fixes #15408

git-svn-id: https://develop.svn.wordpress.org/trunk@16331 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu
2010-11-12 18:40:51 +00:00
parent d653f78616
commit 9f86bb7104
3 changed files with 9 additions and 9 deletions

View File

@@ -946,8 +946,8 @@ class wp_xmlrpc_server extends IXR_Server {
$args = array('get' => 'all', 'number' => $max_results, 'name__like' => $category);
foreach ( (array) get_categories($args) as $cat ) {
$category_suggestions[] = array(
"category_id" => $cat->cat_ID,
"category_name" => $cat->cat_name
"category_id" => $cat->term_id,
"category_name" => $cat->name
);
}
@@ -3409,4 +3409,4 @@ class wp_xmlrpc_server extends IXR_Server {
return $pingbacks;
}
}
?>
?>