[wp-trac] [WordPress Trac] #47286: WP_Query final SQL replaces int numbers to string in meta_query

WordPress Trac noreply at wordpress.org
Sun Jun 16 21:33:19 UTC 2019


#47286: WP_Query final SQL replaces int numbers to string in meta_query
--------------------------+------------------------------
 Reporter:  eddr          |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  5.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by eddr):

 My 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"

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


More information about the wp-trac mailing list