Changeset 5532 for trunk/xmlrpc.php
- Timestamp:
- 05/23/2007 08:59:11 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r5513 r5532 1561 1561 1562 1562 // 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') ) { 1564 1564 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; 1567 1567 1568 1568 $categories_struct[] = $struct;
Note: See TracChangeset
for help on using the changeset viewer.