[wp-trac] [WordPress Trac] #38099: Ability to disable hyphen-based exclusion in searches

WordPress Trac noreply at wordpress.org
Mon Sep 19 18:49:08 UTC 2016


#38099: Ability to disable hyphen-based exclusion in searches
--------------------------------------------+---------------------------
 Reporter:  chriseverson                    |       Owner:  chriseverson
     Type:  enhancement                     |      Status:  assigned
 Priority:  normal                          |   Milestone:  4.7
Component:  Query                           |     Version:  4.4
 Severity:  normal                          |  Resolution:
 Keywords:  needs-unit-tests needs-refresh  |     Focuses:
--------------------------------------------+---------------------------
Changes (by boonebgorges):

 * keywords:   => needs-unit-tests needs-refresh
 * owner:   => chriseverson
 * status:  new => assigned
 * milestone:  Awaiting Review => 4.7


Comment:

 Patch looks good, @chriseverson!

 How about something more verbose for the filter name? Maybe
 `wp_query_use_hyphen_for_negation`?

 If you're able to write a test that demonstrates that the filter works,
 it'd help to expedite this ticket. The existing tests are here
 https://core.trac.wordpress.org/browser/tags/4.6.1/tests/phpunit/tests/query/search.php#L62

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


More information about the wp-trac mailing list