Make WordPress Core

Ticket #25709: 25709.2.diff

File 25709.2.diff, 604 bytes (added by nacin, 11 years ago)
  • src/wp-includes/query.php

     
    19861986                        else
    19871987                                $term = trim( $term, "\"' " );
    19881988
    1989                         // \p{L} matches a single letter that is not a Chinese, Japanese, etc. char
    1990                         if ( ! $term || @preg_match( '/^\p{L}$/u', $term ) )
     1989                        // Avoid single A-Z.
     1990                        if ( ! $term || ( 1 === strlen( $term ) && preg_match( '/^[a-z]$/i', $term ) ) )
    19911991                                continue;
    19921992
    19931993                        if ( in_array( call_user_func( $strtolower, $term ), $stopwords, true ) )