From 8516de020f3f737a83dd3537655be9a72853ab1c Mon Sep 17 00:00:00 2001 From: rob1n Date: Mon, 9 Apr 2007 02:12:29 +0000 Subject: [PATCH] Don't show categories in getCategoryList. fixes #4114 git-svn-id: http://svn.automattic.com/wordpress/trunk@5215 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- xmlrpc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmlrpc.php b/xmlrpc.php index 7f4d021c7b..4866cc0012 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -1526,7 +1526,7 @@ class wp_xmlrpc_server extends IXR_Server { $categories_struct = array(); // FIXME: can we avoid using direct SQL there? - if ($cats = $wpdb->get_results("SELECT cat_ID, cat_name FROM $wpdb->categories", ARRAY_A)) { + if ($cats = $wpdb->get_results("SELECT cat_ID, cat_name FROM $wpdb->categories WHERE (type & " . TAXONOMY_CATEGORY . " != 0)", ARRAY_A)) { foreach ($cats as $cat) { $struct['categoryId'] = $cat['cat_ID']; $struct['categoryName'] = $cat['cat_name'];