Make WordPress Core

Changeset 15554


Ignore:
Timestamp:
08/31/2010 06:26:18 PM (14 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r15536 r15554  
    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' /> ";
Note: See TracChangeset for help on using the changeset viewer.