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

git-svn-id: http://svn.automattic.com/wordpress/trunk@16331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu
2010-11-12 18:40:51 +00:00
parent 5a6716b78a
commit 18116f12c6
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;
}
}
?>
?>