Changeset 31924
- Timestamp:
- 03/30/2015 03:08:28 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r31909 r31924 4276 4276 4277 4277 list( $char1, $char2 ) = str_split( $chars, 5 ); 4278 $entity = '<img src="' . $cdn_url . $char1 . '-' . $char2 . $ext . '" class="wp-smiley" style="height: 1em; max-height: 1em;" />';4278 $entity = sprintf( '<img src="%s" alt="%s" class="wp-smiley" style="height: 1em; max-height: 1em;" />', $cdn_url . $char1 . '-' . $char2 . $ext, html_entity_decode( $flag ) ); 4279 4279 4280 4280 $content = str_replace( $flag, $entity, $content ); … … 4291 4291 foreach ( $matches[1] as $emoji ) { 4292 4292 $char = str_replace( array( '&#x', ';'), '', $emoji ); 4293 $entity = '<img src="' . $cdn_url . $char . $ext . '" class="wp-smiley" style="height: 1em; max-height: 1em;" />';4293 $entity = sprintf( '<img src="%s" alt="%s" class="wp-smiley" style="height: 1em; max-height: 1em;" />', $cdn_url . $char . $ext, html_entity_decode( $emoji ) ); 4294 4294 4295 4295 $content = str_replace( $emoji, $entity, $content );
Note: See TracChangeset
for help on using the changeset viewer.