X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/fa11948979fd6a4ea5705dc613b239699a459db3..53a5df18dd17a11c18781e78349feb3e139096b4:/wp-includes/query.php diff --git a/wp-includes/query.php b/wp-includes/query.php index a9300329..93d57c2d 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -1986,8 +1986,8 @@ class WP_Query { else $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 ) ) + // Avoid single A-Z. + if ( ! $term || ( 1 === strlen( $term ) && preg_match( '/^[a-z]$/i', $term ) ) ) continue; if ( in_array( call_user_func( $strtolower, $term ), $stopwords, true ) )