Make WordPress Core


Ignore:
Timestamp:
05/11/2009 05:01:12 AM (14 years ago)
Author:
ryan
Message:

Allow use of _pad_term_counts for all hierarhcical taxonomies. Props mgsisk, Denis-de-Bernardy. fixes #8350

File:
1 edited

Legend:

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

    r11257 r11260  
    20782078    global $wpdb;
    20792079
    2080     // This function only works for post categories.
    2081     if ( 'category' != $taxonomy )
     2080    // This function only works for hierarchical taxonomies like post categories.
     2081    if ( !is_taxonomy_hierarchical( $taxonomy ) )
    20822082        return;
    20832083
Note: See TracChangeset for help on using the changeset viewer.