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

WordPress Trac noreply at wordpress.org
Mon Sep 19 18:34:53 UTC 2016


#38099: Ability to disable hyphen-based exclusion in searches
--------------------------+------------------------------
 Reporter:  chriseverson  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by chriseverson):

 * keywords:  needs-patch =>


Comment:

 For testing: In the above patch, it expects the following to disable the
 hyphen being a search operator:

 {{{#!php
 add_filter( 'wp_search_exclusion', '__return_false' );
 }}}

 I'm not entirely in love with the naming of the filter, so if anyone has
 any better ideas, I can update accordingly.

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


More information about the wp-trac mailing list