Opened 9 years ago
Closed 9 years ago
#41113 closed defect (bug) (fixed)
WP_Term_Query::get_terms() : Do not presume the $taxonomies is a 0-based array
| Reported by: | david.binda | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.9 |
| Component: | Taxonomy | Version: | 3.7 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
In #23506 the assumption that $taxonomies is a 0-based array has been flagged and patched via r25108, however a part of the fix has been reverted, very likely due to an oversight, in r25162 (addressing unrelated ticket - #11823)
Attached patch is restoring the original fix, which is using reset() instead of assuming that $taxonomies[0] exists.
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@david.binda Thank you for the patch, and especially for identifying the relevant changesets! This makes our job much, much easier. <3