add smilies_src filter. Props Otto42. see #10145
git-svn-id: https://develop.svn.wordpress.org/trunk@11738 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b4b59e27e5
commit
62cdbc6522
|
@ -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