diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 42425aabee..af6f6babf3 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -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 " $smiley_masked "; }