[wp-trac] [WordPress Trac] #36195: Search for something with ' - ' will always return nothing

WordPress Trac noreply at wordpress.org
Mon Mar 14 14:11:19 UTC 2016


#36195: Search for something with ' - ' will always return nothing
--------------------------------------+---------------------------
 Reporter:  RomSocial                 |       Owner:  boonebgorges
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.4.3
Component:  Query                     |     Version:  4.4
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------------
Changes (by boonebgorges):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"36989"]:
 {{{
 #!CommitTicketReference repository="" revision="36989"
 Query: Ignore search terms consisting of a single dash.

 Due to the "exclude" support added in WP 4.4, single dashes were being
 converted to "NOT LIKE '%%'" clauses, causing all searches to fail.

 Props RomSocial, swissspidy.
 Fixes #36195.
 }}}

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


More information about the wp-trac mailing list