suggestCategories cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@5782 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
538cbd0046
commit
9817ec9e74
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user