Changeset 5532
- Timestamp:
- 05/23/2007 08:59:11 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r5529 r5532 644 644 if ( $checked == $current) 645 645 echo ' checked="checked"'; 646 }647 648 function return_categories_list( $parent = 0 ) {649 global $wpdb;650 return $wpdb->get_col( "SELECT cat_ID FROM $wpdb->categories WHERE category_parent = $parent AND ( type & " . TAXONOMY_CATEGORY . " != 0 ) AND ( link_count = 0 OR category_count != 0 ) ORDER BY category_count DESC" );651 646 } 652 647 -
trunk/wp-includes/functions.php
r5507 r5532 651 651 function update_post_category_cache($post_ids) { 652 652 global $wpdb, $category_cache, $tag_cache, $blog_id; 653 653 // TODO 654 return; 654 655 if ( empty($post_ids) ) 655 656 return; -
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.