Require smilies to be surrounded by spaces or be at the beginning or end of the line, see #6464
git-svn-id: http://svn.automattic.com/wordpress/trunk@10514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f1d335052d
commit
0d258926e7
|
@ -2510,7 +2510,7 @@ function smilies_init() {
|
||||||
// new subpattern?
|
// new subpattern?
|
||||||
if ($firstchar != $subchar) {
|
if ($firstchar != $subchar) {
|
||||||
if ($subchar != '') {
|
if ($subchar != '') {
|
||||||
$wp_smiliessearch .= ')|';
|
$wp_smiliessearch .= ')|(?:\s|^)';
|
||||||
}
|
}
|
||||||
$subchar = $firstchar;
|
$subchar = $firstchar;
|
||||||
$wp_smiliessearch .= preg_quote($firstchar, '/') . '(?:';
|
$wp_smiliessearch .= preg_quote($firstchar, '/') . '(?:';
|
||||||
|
@ -2520,7 +2520,7 @@ function smilies_init() {
|
||||||
$wp_smiliessearch .= preg_quote($rest);
|
$wp_smiliessearch .= preg_quote($rest);
|
||||||
}
|
}
|
||||||
|
|
||||||
$wp_smiliessearch .= ')(?:\s|$)/';
|
$wp_smiliessearch .= ')(?:\s|$)/m';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue