[wp-trac] [WordPress Trac] #56933: Unexpected quotes around search text in custom LIKE queries

WordPress Trac noreply at wordpress.org
Mon Oct 31 12:56:44 UTC 2022


#56933: Unexpected quotes around search text in custom LIKE queries
--------------------------------------------+---------------------
 Reporter:  AlanP57                         |       Owner:  (none)
     Type:  defect (bug)                    |      Status:  new
 Priority:  normal                          |   Milestone:  6.1
Component:  Database                        |     Version:  6.1
 Severity:  normal                          |  Resolution:
 Keywords:  needs-testing needs-unit-tests  |     Focuses:
--------------------------------------------+---------------------

Comment (by desrosj):

 Some notes, I have gone and made this ticket on behalf of @AlanP57 for the
 following reasons:

 - It's not completely clear if this is being caused by #56802 (Post IDs
 cached for search and other 'LIKE' queries are unreachable) or #52506 (Add
 escaping method for table names in SQL queries).
 - 6.1 is due out in ~24 hours.
 - The other tickets are closed and completed on the 6.1 milestone and they
 should remain there if those changes ship in the release.
 - This separate ticket allows it to be milestoned and triaged
 appropriately as more information is discovered.
 - This seems to be an edge case from custom code and not one from using
 `WP_Query` directly.

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


More information about the wp-trac mailing list