suggestCategories cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@5782 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0d05f746cf
commit
821cf4b63f
|
@ -540,13 +540,8 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
return($this->error);
|
return($this->error);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only set a limit if one was provided.
|
$args = array('get' => 'all', 'number' => $max_results, 'name_like' => $category);
|
||||||
$limit = "";
|
$category_suggestions = get_categories($args);
|
||||||
if(!empty($max_results)) {
|
|
||||||
$limit = "LIMIT {$max_results}";
|
|
||||||
}
|
|
||||||
|
|
||||||
$category_suggestions = get_categories("get=all&number=$max_results&name_like=$category");
|
|
||||||
|
|
||||||
return($category_suggestions);
|
return($category_suggestions);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue