Make WordPress Core

Ticket #8350: 8350.diff

File 8350.diff, 422 bytes (added by Denis-de-Bernardy, 15 years ago)
  • wp-includes/taxonomy.php

     
    20782078        global $wpdb;
    20792079
    20802080        // This function only works for post categories.
    2081         if ( 'category' != $taxonomy )
     2081        if ( !is_taxonomy_hierarchical( $taxonomy ) )
    20822082                return;
    20832083
    20842084        $term_hier = _get_term_hierarchy($taxonomy);