WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #47286, comment 3


Ignore:
Timestamp:
06/16/2019 09:59:50 PM (14 months ago)
Author:
eddr
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #47286, comment 3

    initial v1  
    11My proposed solution is to take into account the meta query "type" field for formatting the value. In case of - say - "INTEGER", the value will be formatted as "%d", otherwise, can remain as it is now - "%s"
     2
     3Added the patch file. This is just to give an idea and need fixing. As described, when meta query includes type => "INTEGER", the formatting will be "%d" and SQL will be correct for this case