WordPress.org

Make WordPress Core

Ticket #14360: 14360.diff

File 14360.diff, 668 bytes (added by ryan, 9 years ago)

Use includes_url()

  • wp-includes/formatting.php

     
    14241424                return '';
    14251425        }
    14261426
    1427         $siteurl = get_option( 'siteurl' );
    1428 
    14291427        $smiley = trim(reset($smiley));
    14301428        $img = $wpsmiliestrans[$smiley];
    14311429        $smiley_masked = esc_attr($smiley);
    14321430
    1433         $srcurl = apply_filters('smilies_src', "$siteurl/wp-includes/images/smilies/$img", $img, $siteurl);
     1431        $srcurl = apply_filters('smilies_src', includes_url("images/smilies/$img"), $img, site_url());
    14341432
    14351433        return " <img src='$srcurl' alt='$smiley_masked' class='wp-smiley' /> ";
    14361434}