add smilies_src filter. Props Otto42. see #10145
git-svn-id: http://svn.automattic.com/wordpress/trunk@11738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2cc87216e8
commit
90f9d33c42
|
@ -1317,8 +1317,10 @@ function translate_smiley($smiley) {
|
|||
$smiley = trim(reset($smiley));
|
||||
$img = $wpsmiliestrans[$smiley];
|
||||
$smiley_masked = esc_attr($smiley);
|
||||
|
||||
$srcurl = apply_filters('smilies_src', "$siteurl/wp-includes/images/smilies/$img", $img, $siteurl);
|
||||
|
||||
return " <img src='$siteurl/wp-includes/images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> ";
|
||||
return " <img src='$srcurl' alt='$smiley_masked' class='wp-smiley' /> ";
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue