[wp-trac] [WordPress Trac] #8350: _pad_term_counts not availabe to custom hierarchical taxonomies

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 26 05:02:06 GMT 2008


#8350: _pad_term_counts not availabe to custom hierarchical taxonomies
---------------------+------------------------------------------------------
 Reporter:  mgsisk   |       Owner:  anonymous                                
     Type:  defect   |      Status:  new                                      
 Priority:  normal   |   Milestone:                                           
Component:  General  |     Version:                                           
 Severity:  normal   |    Keywords:  taxonomy pad_count custom pad_term_counts
---------------------+------------------------------------------------------
 It seems like _pad_term_counts might be useful for custom hierarchical
 taxonomies. Instead of checking for the category taxonomy, as the function
 does now:
 {{{
 // This function only works for post categories.
         if ( 'category' != $taxonomy )
                 return;
 }}}
 it seems it'd be more useful to check if the taxonomy is hiearchical:
 {{{
 // This function only works for hierarchical taxonomies.
         if ( !is_taxonomy_hierarchical( $taxonomy ) )
                 return;
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8350>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list