mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Add name_like query to get_terms(). Use it in suggestCategories.
git-svn-id: https://develop.svn.wordpress.org/trunk@5756 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+1
-7
@@ -546,13 +546,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
$limit = "LIMIT {$max_results}";
|
||||
}
|
||||
|
||||
$category_suggestions = $wpdb->get_results("
|
||||
SELECT cat_ID category_id,
|
||||
cat_name category_name
|
||||
FROM {$wpdb->categories}
|
||||
WHERE cat_name LIKE '{$category}%'
|
||||
{$limit}
|
||||
");
|
||||
$category_suggestions = get_categories("get=all&number=$max_results&name_like=$category");
|
||||
|
||||
return($category_suggestions);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user