Make WordPress Core

Changeset 5532 for trunk/xmlrpc.php


Ignore:
Timestamp:
05/23/2007 08:59:11 PM (18 years ago)
Author:
ryan
Message:

More rel_type elimination. see #4189

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r5513 r5532  
    15611561
    15621562        // FIXME: can we avoid using direct SQL there?
    1563         if ($cats = $wpdb->get_results("SELECT cat_ID, cat_name FROM $wpdb->categories WHERE (type & " . TAXONOMY_CATEGORY . " != 0)", ARRAY_A)) {
     1563        if ( $cats = get_categories('hide_empty=0&hierarchical=0') ) {
    15641564            foreach ($cats as $cat) {
    1565                 $struct['categoryId'] = $cat['cat_ID'];
    1566                 $struct['categoryName'] = $cat['cat_name'];
     1565                $struct['categoryId'] = $cat->term_id;
     1566                $struct['categoryName'] = $cat->name;
    15671567
    15681568                $categories_struct[] = $struct;
Note: See TracChangeset for help on using the changeset viewer.