Make WordPress Core

Changeset 5215 for trunk/xmlrpc.php


Ignore:
Timestamp:
04/09/2007 02:12:29 AM (18 years ago)
Author:
rob1n
Message:

Don't show categories in getCategoryList. fixes #4114

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r5173 r5215  
    15271527
    15281528        // FIXME: can we avoid using direct SQL there?
    1529         if ($cats = $wpdb->get_results("SELECT cat_ID, cat_name FROM $wpdb->categories", ARRAY_A)) {
     1529        if ($cats = $wpdb->get_results("SELECT cat_ID, cat_name FROM $wpdb->categories WHERE (type & " . TAXONOMY_CATEGORY . " != 0)", ARRAY_A)) {
    15301530            foreach ($cats as $cat) {
    15311531                $struct['categoryId'] = $cat['cat_ID'];
Note: See TracChangeset for help on using the changeset viewer.