Opened 22 months ago
Closed 20 months ago
#18455 closed defect (bug) (fixed)
Undefined index in _pad_term_counts()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | Taxonomy | Version: | 3.2.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
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)
SergeyBiryukov
— 22 months ago
comment:1
SergeyBiryukov
— 22 months ago
- Keywords has-patch added; needs-patch removed
- Milestone changed from Awaiting Review to 3.3
Note: See
TracTickets for help on using
tickets.
In [19077]: