diff --git src/wp-includes/formatting.php src/wp-includes/formatting.php
index 0377bbd..f14ef86 100644
|
|
|
function translate_smiley( $matches ) { |
| 2109 | 2109 | */ |
| 2110 | 2110 | $src_url = apply_filters( 'smilies_src', includes_url( "images/smilies/$img" ), $img, site_url() ); |
| 2111 | 2111 | |
| 2112 | | return sprintf( '<img src="%s" alt="%s" class="wp-smiley" style="height: 1em;" />', esc_url( $src_url ), esc_attr( $smiley ) ); |
| | 2112 | return sprintf( '<img src="%s" alt="%s" class="wp-smiley" style="max-height: 1em;" />', esc_url( $src_url ), esc_attr( $smiley ) ); |
| 2113 | 2113 | } |
| 2114 | 2114 | |
| 2115 | 2115 | /** |
| … |
… |
function wp_staticize_emoji( $text ) { |
| 4200 | 4200 | $chars = str_replace( array( '&#x', ';'), '', $flag ); |
| 4201 | 4201 | |
| 4202 | 4202 | list( $char1, $char2 ) = str_split( $chars, 5 ); |
| 4203 | | $entity = '<img src="' . $cdn_url . $char1 . '-' . $char2 . $ext . '" class="wp-smiley" style="height: 1em;" />'; |
| | 4203 | $entity = '<img src="' . $cdn_url . $char1 . '-' . $char2 . $ext . '" class="wp-smiley" style="max-height: 1em;" />'; |
| 4204 | 4204 | |
| 4205 | 4205 | $content = str_replace( $flag, $entity, $content ); |
| 4206 | 4206 | } |
| … |
… |
function wp_staticize_emoji( $text ) { |
| 4215 | 4215 | if ( ! empty( $matches[1] ) ) { |
| 4216 | 4216 | foreach ( $matches[1] as $emoji ) { |
| 4217 | 4217 | $char = str_replace( array( '&#x', ';'), '', $emoji ); |
| 4218 | | $entity = '<img src="' . $cdn_url . $char . $ext . '" class="wp-smiley" style="height: 1em;" />'; |
| | 4218 | $entity = '<img src="' . $cdn_url . $char . $ext . '" class="wp-smiley" style="max-height: 1em;" />'; |
| 4219 | 4219 | |
| 4220 | 4220 | $content = str_replace( $emoji, $entity, $content ); |
| 4221 | 4221 | } |