]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/query.php
WordPress 3.7.1
[autoinstalls/wordpress.git] / wp-includes / query.php
index a9300329d19db4fc2e9aaefc277ee15aecef07f5..93d57c2db866ccdcc7531638915782285fe607b6 100644 (file)
@@ -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 ) )