[wp-trac] [WordPress Trac] #18455: Undefined index in _pad_term_counts()

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 17 04:25:09 UTC 2011


#18455: Undefined index in _pad_term_counts()
--------------------------+-----------------------------
 Reporter:  valendesigns  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:  3.2.1
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+-----------------------------
 When using `wp_list_categories()` in conjunction with a comma separated
 string of child category ID's and the 'show_count=1' option, the
 `_pad_term_counts()` function in taxonomy.php will return an undefined
 index notice on line 2806.

 The fix below:


 {{{
 while ( isset($terms_by_id[$child]->parent) && $parent =
 $terms_by_id[$child]->parent ) {
 }}}

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


More information about the wp-trac mailing list