Make WordPress Core

Changeset 11738


Ignore:
Timestamp:
07/22/2009 06:27:13 PM (15 years ago)
Author:
ryan
Message:

add smilies_src filter. Props Otto42. see #10145

File:
1 edited

Legend:

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

    r11634 r11738  
    13181318    $img = $wpsmiliestrans[$smiley];
    13191319    $smiley_masked = esc_attr($smiley);
    1320 
    1321     return " <img src='$siteurl/wp-includes/images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> ";
     1320   
     1321    $srcurl = apply_filters('smilies_src', "$siteurl/wp-includes/images/smilies/$img", $img, $siteurl);
     1322
     1323    return " <img src='$srcurl' alt='$smiley_masked' class='wp-smiley' /> ";
    13221324}
    13231325
Note: See TracChangeset for help on using the changeset viewer.