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

git-svn-id: https://develop.svn.wordpress.org/trunk@11260 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-05-11 05:01:12 +00:00
parent 9dab147679
commit 00268d9665
1 changed files with 2 additions and 2 deletions

View File

@ -2077,8 +2077,8 @@ function &_get_term_children($term_id, $terms, $taxonomy) {
function _pad_term_counts(&$terms, $taxonomy) {
global $wpdb;
// This function only works for post categories.
if ( 'category' != $taxonomy )
// This function only works for hierarchical taxonomies like post categories.
if ( !is_taxonomy_hierarchical( $taxonomy ) )
return;
$term_hier = _get_term_hierarchy($taxonomy);