Don't show categories in getCategoryList. fixes #4114

git-svn-id: https://develop.svn.wordpress.org/trunk@5215 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n 2007-04-09 02:12:29 +00:00
parent ab74cb7a60
commit 5dd06ccdb7
1 changed files with 1 additions and 1 deletions

View File

@ -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'];