[wp-trac] [WordPress Trac] #13907: get_categories with custom taxonomy ignores "depth"

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 15 20:11:34 UTC 2010


#13907: get_categories with custom taxonomy ignores "depth"
--------------------------+-------------------------------------------------
 Reporter:  yeswework     |       Owner:                    
     Type:  defect (bug)  |      Status:  new               
 Priority:  normal        |   Milestone:  Future Release    
Component:  Taxonomy      |     Version:  3.0               
 Severity:  normal        |    Keywords:  close dev-feedback
--------------------------+-------------------------------------------------
Changes (by ocean90):

  * keywords:  dev-feedback => close dev-feedback


Comment:

 wp_list_categories() supports the depth arg, see
 [http://core.trac.wordpress.org/browser/trunk/wp-includes/category-
 template.php#L513 here] [[BR]]
 get_categories() uses get_terms() and
 [http://core.trac.wordpress.org/browser/trunk/wp-
 includes/taxonomy.php#L813 get_terms(]) doesn't support the depth arg.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13907#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list