From 821cf4b63feef537c35ae095df50782064a74438 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 6 Jul 2007 00:15:13 +0000 Subject: [PATCH] suggestCategories cleanup git-svn-id: http://svn.automattic.com/wordpress/trunk@5782 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- xmlrpc.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/xmlrpc.php b/xmlrpc.php index 3a5c315208..8d54b0ed76 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -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); }