Opened 15 years ago
Closed 15 years ago
#18455 closed defect (bug) (fixed)
Undefined index in _pad_term_counts()
| Reported by: | valendesigns | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | Taxonomy | Version: | 3.2.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
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 ) {
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In [19077]: