[wp-trac] [WordPress Trac] #38099: Ability to disable hyphen-based exclusion in searches
WordPress Trac
noreply at wordpress.org
Thu Oct 20 18:41:23 UTC 2016
#38099: Ability to disable hyphen-based exclusion in searches
--------------------------------------+---------------------
Reporter: chriseverson | Owner: dlh
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.7
Component: Query | Version: 4.4
Severity: normal | Resolution: fixed
Keywords: has-unit-tests has-patch | Focuses:
--------------------------------------+---------------------
Changes (by boonebgorges):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"38844"]:
{{{
#!CommitTicketReference repository="" revision="38844"
Query: Allow the prefix used for search term exclusion to be filtered.
[38792] allowed `WP_Query`'s hyphen-as-exclusion-prefix feature to be
disabled via filter. A more general solution is to allow the prefix to
be filtered; returning an empty value from a filter callback works to
disable the feature.
Props dlh.
Fixes #38099.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38099#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list