Ticket #25529: 25529.diff
File 25529.diff, 653 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/formatting.php
1762 1762 1763 1763 $smiley = trim( reset( $matches ) ); 1764 1764 $img = $wpsmiliestrans[ $smiley ]; 1765 $smiley_masked = esc_attr( $smiley );1766 1765 1767 1766 $src_url = apply_filters( 'smilies_src', includes_url( "images/smilies/$img" ), $img, site_url() ); 1768 1767 1769 return " <img src='$src_url' alt='$smiley_masked' class='wp-smiley' /> ";1768 return sprintf( ' <img src="%s" alt="%s" class="wp-smiley" /> ', esc_url( $src_url ), esc_attr( $smiley ) ); 1770 1769 } 1771 1770 1772 1771 /**