In search stopwords filtering, suppress possible PHP warnings when PCRE lacks UTF-8 support.

see #25709.

Built from https://develop.svn.wordpress.org/trunk@25932


git-svn-id: http://core.svn.wordpress.org/trunk@25891 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-10-26 05:59:09 +00:00
parent 823ad1ae6e
commit c08aee70bb
1 changed files with 1 additions and 1 deletions

View File

@ -1987,7 +1987,7 @@ class WP_Query {
$term = trim( $term, "\"' " ); $term = trim( $term, "\"' " );
// \p{L} matches a single letter that is not a Chinese, Japanese, etc. char // \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; continue;
if ( in_array( call_user_func( $strtolower, $term ), $stopwords, true ) ) if ( in_array( call_user_func( $strtolower, $term ), $stopwords, true ) )