From 5dd06ccdb7e5365c8e5b5f1fdbaa897889aad534 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: https://develop.svn.wordpress.org/trunk@5215 602fd350-edb4-49c9-b593-d223f7449a82 --- 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'];