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
|
@ -1318,7 +1318,9 @@ function translate_smiley($smiley) {
|
||||||
$img = $wpsmiliestrans[$smiley];
|
$img = $wpsmiliestrans[$smiley];
|
||||||
$smiley_masked = esc_attr($smiley);
|
$smiley_masked = esc_attr($smiley);
|
||||||
|
|
||||||
return " <img src='$siteurl/wp-includes/images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> ";
|
$srcurl = apply_filters('smilies_src', "$siteurl/wp-includes/images/smilies/$img", $img, $siteurl);
|
||||||
|
|
||||||
|
return " <img src='$srcurl' alt='$smiley_masked' class='wp-smiley' /> ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue