mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-14 11:31:48 +01:00
Allow use of _pad_term_counts for all hierarhcical taxonomies. Props mgsisk, Denis-de-Bernardy. fixes #8350
git-svn-id: http://svn.automattic.com/wordpress/trunk@11260 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a478f215d3
commit
80078c3882
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user