WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/30/2007 01:39:47 AM (15 years ago)
Author:
ryan
Message:

Category hierarchy fixes. see #4189

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r5596 r5597  
    701701
    702702    $children = array();
    703     $terms = get_terms($taxonomy, 'hide_empty=0&hierarchical=0');
     703    $terms = get_terms($taxonomy, 'get=all');
    704704    foreach ( $terms as $term ) {
    705705        if ( $term->parent > 0 )
    706             $children[$cterm->parent][] = $term->term_id;
     706            $children[$term->parent][] = $term->term_id;
    707707    }
    708708    update_option("{$taxonomy}_children", $children);
Note: See TracChangeset for help on using the changeset viewer.