Make WordPress Core

Changeset 5532


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

More rel_type elimination. see #4189

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r5529 r5532  
    644644    if ( $checked == $current)
    645645        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" );
    651646}
    652647
  • trunk/wp-includes/functions.php

    r5507 r5532  
    651651function update_post_category_cache($post_ids) {
    652652    global $wpdb, $category_cache, $tag_cache, $blog_id;
    653 
     653    // TODO
     654    return;
    654655    if ( empty($post_ids) )
    655656        return;
  • 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.