Opened 11 years ago
Closed 11 years ago
#32756 closed defect (bug) (fixed)
Notice in `WP_Tax_Query::get_sql_for_clause()`
| Reported by: | dlh | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.3 |
| Component: | Taxonomy | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
WP_Tax_Query::get_sql_for_clause() provides a default empty string for the $join variable, but not for $where.
This can lead to a undefined-variable notice from $sql['where'][] = $where if the received $clause['operator'] isn't covered in the method's conditionals.
The attached patch would create $where with $join.
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)
Thanks for the ticket!