[wp-trac] [WordPress Trac] #25709: Searches with stopwords can trigger E_WARNING when PCRE is lacking UTF-8 support

WordPress Trac noreply at wordpress.org
Sun Oct 27 03:29:21 UTC 2013


#25709: Searches with stopwords can trigger E_WARNING when PCRE is lacking UTF-8
support
------------------------------+--------------------
 Reporter:  nacin             |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  high              |   Milestone:  3.7.1
Component:  General           |     Version:  3.7
 Severity:  major             |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+--------------------

Comment (by azaozz):

 > preg_match is only checking to see if a non-a-z ascii character is
 present.

 Right, the conditional is true only for single letters so they are removed
 from the separate term matching. `strlen()` checks if the term is only one
 byte long, so preg_match() is not run when not needed.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25709#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list