Opened 8 years ago
Closed 8 years ago
#41113 closed defect (bug) (fixed)
WP_Term_Query::get_terms() : Do not presume the $taxonomies is a 0-based array
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.9 | Priority: | normal |
| Severity: | normal | Version: | 3.7 |
| Component: | Taxonomy | Keywords: | has-patch |
| Focuses: | Cc: |
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.
@david.binda Thank you for the patch, and especially for identifying the relevant changesets! This makes our job much, much easier. <3