Ticket #3222: 3222.diff
| File 3222.diff, 1.5 KB (added by , 20 years ago) |
|---|
-
wp-includes/formatting.php
618 618 if (get_option('use_smilies')) { 619 619 // HTML loop taken from texturize function, could possible be consolidated 620 620 $textarr = preg_split("/(<.*>)/U", $text, -1, PREG_SPLIT_DELIM_CAPTURE); // capture the tags as well as in between 621 $output = implode('', preg_replace($wp_smiliessearch, $wp_smiliesreplace, $textarr)); 621 $stop = count($textarr);// loop stuff 622 for ($i = 0; $i < $stop; $i++) { 623 $content = $textarr[$i]; 624 if ((strlen($content) > 0) && ('<' != $content{0})) { // If it's not a tag 625 $content = preg_replace($wp_smiliessearch, $wp_smiliesreplace, $content); 626 } 627 $output .= $content; 628 } 622 629 } else { 623 630 // return default text. 624 631 $output = $text; -
wp-includes/vars.php
87 87 88 88 // generates smilies' search & replace arrays 89 89 foreach($wpsmiliestrans as $smiley => $img) { 90 $wp_smiliessearch[] = '/(\s|^ |[^<])?'.preg_quote($smiley, '/').'(\b|\s|$)/';90 $wp_smiliessearch[] = '/(\s|^)'.preg_quote($smiley, '/').'(\s|$)/'; 91 91 $smiley_masked = htmlspecialchars( trim($smiley) , ENT_QUOTES); 92 92 $wp_smiliesreplace[] = " <img src='" . get_option('siteurl') . "/wp-includes/images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> "; 93 93 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)