Opened 9 years ago
Closed 9 years ago
#32756 closed defect (bug) (fixed)
Notice in `WP_Tax_Query::get_sql_for_clause()`
Reported by: | dlh | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | |
Focuses: | Cc: |
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.
Thanks for the ticket!