Opened 12 years ago
Closed 12 years ago
#27557 closed enhancement (fixed)
Make operator case insensitive in tax queries
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.0 | Priority: | normal |
| Severity: | normal | Version: | 3.1 |
| Component: | Query | Keywords: | needs-refresh has-patch |
| Focuses: | Cc: |
Description
In WP_Tax_Query::get_sql() the operator is assumed / required to be uppercase.
This conforms to preferred SQL syntax, but there isn't a good reason I can think of to enforce this here.
The simplest fix is is to force $operator to uppercase, allowing for a variety of input. I'm attaching a patch to that effect.
Attachments (2)
Change History (9)
#2
@
12 years ago
- Keywords needs-refresh has-patch added
- Milestone changed from Awaiting Review to 4.0
#5
in reply to:
↑ 4
@
12 years ago
Replying to wonderboymusic:
Not sure what you're referring to. Could you clarify? Happy to make any necessary changes.
Thanks!
Note: See
TracTickets for help on using
tickets.
Needs whitespace rehabilitation