Smiley parsing fixes from Nazgul. fixes #2444 #1279

git-svn-id: https://develop.svn.wordpress.org/trunk@4283 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-10-04 02:21:27 +00:00
parent 520e4974cc
commit 076dd45bcf
2 changed files with 25 additions and 25 deletions

View File

@@ -613,7 +613,7 @@ function convert_smilies($text) {
for ($i = 0; $i < $stop; $i++) {
$content = $textarr[$i];
if ((strlen($content) > 0) && ('<' != $content{0})) { // If it's not a tag
$content = str_replace($wp_smiliessearch, $wp_smiliesreplace, $content);
$content = preg_replace($wp_smiliessearch, $wp_smiliesreplace, $content);
}
$output .= $content;
}