Make WordPress Core


Ignore:
Timestamp:
10/26/2013 05:58:37 AM (11 years ago)
Author:
nacin
Message:

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

see #25709.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/query.php

    r25889 r25932  
    19881988
    19891989            // \p{L} matches a single letter that is not a Chinese, Japanese, etc. char
    1990             if ( ! $term || preg_match( '/^\p{L}$/u', $term ) )
     1990            if ( ! $term || @preg_match( '/^\p{L}$/u', $term ) )
    19911991                continue;
    19921992
Note: See TracChangeset for help on using the changeset viewer.