[wp-trac] [WordPress Trac] #42546: WP_Query not handling 'LIKE' correctly.

WordPress Trac noreply at wordpress.org
Wed Mar 14 09:30:51 UTC 2018


#42546: WP_Query not handling 'LIKE' correctly.
--------------------------+------------------------------
 Reporter:  tberneman     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  4.8.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by ionutm):

 the problem is the last line from function prepare from wp-db.php

 return $this->add_placeholder_escape( $query );

 with replaces the % characters with placeholders

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


More information about the wp-trac mailing list