Query: Allow the hyphen-prefix-for-search-exclusion feature to be disabled by filter.
WordPress 4.4 introduced "hyphen exclusion" for search terms, so that "foo -bar" would return posts containing "foo" AND not containing "bar". The new filter 'wp_query_use_hyphen_for_exclusion' allows developers to disable this feature when it's known that their content will contain semantically important leading hyphens. Props chriseverson, choongsavvii. Fixes #38099. Built from https://develop.svn.wordpress.org/trunk@38792 git-svn-id: http://core.svn.wordpress.org/trunk@38735 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-alpha-38791';
|
||||
$wp_version = '4.7-alpha-38792';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user