[wp-trac] [WordPress Trac] #37903: SQL Consistency ...

WordPress Trac noreply at wordpress.org
Thu Sep 1 04:46:08 UTC 2016


#37903: SQL Consistency ...
-------------------------+-----------------------
 Reporter:  scrappy@…    |       Owner:  dd32
     Type:  enhancement  |      Status:  accepted
 Priority:  normal       |   Milestone:  4.7
Component:  Query        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+-----------------------
Changes (by dd32):

 * owner:   => dd32
 * status:  new => accepted
 * milestone:  Awaiting Review => 4.7


Comment:

 Hi @scrappy at hub.org and welcome to Trac :)

 I see no reason why we shouldn't be consistent here, I can't find any
 other occurrences of `&&` in SQL in core, although I can see a few plugins
 which use the syntax.

 I'd highly suggest adding a conversion for the standard MySQL logic
 syntaxes, just as plugins are going to do what plugins do :)

 Introduced with [36138] in 4.5.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37903#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list