[wp-trac] [WordPress Trac] #27557: Make operator case insensitive in tax queries

WordPress Trac noreply at wordpress.org
Thu Mar 27 19:07:35 UTC 2014


#27557: Make operator case insensitive in tax queries
-------------------------+-----------------------------
 Reporter:  clifgriffin  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Query        |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27557>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list