Fix for bug http://mosquito.wordpress.org/view.php?id=177, adding class to smileys and encoding quotes in alt text.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
deb6861b1c
commit
aad8c71bb1
|
@ -174,8 +174,8 @@ uksort($wpsmiliestrans, 'smiliescmp');
|
||||||
// generates smilies' search & replace arrays
|
// generates smilies' search & replace arrays
|
||||||
foreach($wpsmiliestrans as $smiley => $img) {
|
foreach($wpsmiliestrans as $smiley => $img) {
|
||||||
$wp_smiliessearch[] = $smiley;
|
$wp_smiliessearch[] = $smiley;
|
||||||
$smiley_masked = str_replace(' ', '', $smiley);
|
$smiley_masked = htmlspecialchars( trim($smiley) , ENT_QUOTES);
|
||||||
$wp_smiliesreplace[] = " <img src='" . get_settings('siteurl') . "/wp-images/smilies/$img' alt='$smiley_masked' />";
|
$wp_smiliesreplace[] = " <img src='" . get_settings('siteurl') . "/wp-images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> ";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Path for cookies
|
// Path for cookies
|
||||||
|
|
Loading…
Reference in New Issue