Make smilies links SSL aware. Props tech163. fixes #14360

git-svn-id: http://svn.automattic.com/wordpress/trunk@15554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-08-31 18:26:18 +00:00
parent b482fe4499
commit 5d5f2ed563

View File

@ -1424,13 +1424,11 @@ function translate_smiley($smiley) {
return '';
}
$siteurl = get_option( 'siteurl' );
$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);
$srcurl = apply_filters('smilies_src', includes_url("images/smilies/$img"), $img, site_url());
return " <img src='$srcurl' alt='$smiley_masked' class='wp-smiley' /> ";
}