In search stopwords filtering, suppress possible PHP warnings when PCRE lacks UTF-8 support.
see #25709. git-svn-id: https://develop.svn.wordpress.org/trunk@25932 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
eba5ddbcfa
commit
287e4db6f6
@ -1987,7 +1987,7 @@ class WP_Query {
|
||||
$term = trim( $term, "\"' " );
|
||||
|
||||
// \p{L} matches a single letter that is not a Chinese, Japanese, etc. char
|
||||
if ( ! $term || preg_match( '/^\p{L}$/u', $term ) )
|
||||
if ( ! $term || @preg_match( '/^\p{L}$/u', $term ) )
|
||||
continue;
|
||||
|
||||
if ( in_array( call_user_func( $strtolower, $term ), $stopwords, true ) )
|
||||
|
Loading…
Reference in New Issue
Block a user