Require smilies to be surrounded by spaces or be at the beginning or end of the line, see #6464

git-svn-id: https://develop.svn.wordpress.org/trunk@10514 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-02-06 03:42:48 +00:00
parent 58b6d3b7a1
commit ac427bbdcc
1 changed files with 2 additions and 2 deletions

View File

@ -2510,7 +2510,7 @@ function smilies_init() {
// new subpattern?
if ($firstchar != $subchar) {
if ($subchar != '') {
$wp_smiliessearch .= ')|';
$wp_smiliessearch .= ')|(?:\s|^)';
}
$subchar = $firstchar;
$wp_smiliessearch .= preg_quote($firstchar, '/') . '(?:';
@ -2520,7 +2520,7 @@ function smilies_init() {
$wp_smiliessearch .= preg_quote($rest);
}
$wp_smiliessearch .= ')(?:\s|$)/';
$wp_smiliessearch .= ')(?:\s|$)/m';
}
/**