suggestCategories cleanup

git-svn-id: http://svn.automattic.com/wordpress/trunk@5782 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-07-06 00:15:13 +00:00
parent 0d05f746cf
commit 821cf4b63f
1 changed files with 2 additions and 7 deletions

View File

@ -540,13 +540,8 @@ class wp_xmlrpc_server extends IXR_Server {
return($this->error);
}
// Only set a limit if one was provided.
$limit = "";
if(!empty($max_results)) {
$limit = "LIMIT {$max_results}";
}
$category_suggestions = get_categories("get=all&number=$max_results&name_like=$category");
$args = array('get' => 'all', 'number' => $max_results, 'name_like' => $category);
$category_suggestions = get_categories($args);
return($category_suggestions);
}