Ticket #33279: formatting.php.patch
File formatting.php.patch, 1.8 KB (added by , 10 years ago) |
---|
-
formatting.php
2297 2297 */ 2298 2298 $src_url = apply_filters( 'smilies_src', includes_url( "images/smilies/$img" ), $img, site_url() ); 2299 2299 2300 return sprintf( '<img src="%s" alt="%s" class="wp-smiley" style="height: 1em; max-height: 1em;"/>', esc_url( $src_url ), esc_attr( $smiley ) );2300 return sprintf( '<img src="%s" alt="%s" class="wp-smiley" />', esc_url( $src_url ), esc_attr( $smiley ) ); 2301 2301 } 2302 2302 2303 2303 /** … … 4315 4315 $printed = true; 4316 4316 ?> 4317 4317 <style type="text/css"> 4318 img.wp-smiley,4319 4318 img.emoji { 4320 4319 display: inline !important; 4321 4320 border: none !important; … … 4502 4501 $chars = str_replace( array( '&#x', ';'), '', $flag ); 4503 4502 4504 4503 list( $char1, $char2 ) = str_split( $chars, 5 ); 4505 $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 ) );4504 $entity = sprintf( '<img src="%s" alt="%s" class="wp-smiley" />', $cdn_url . $char1 . '-' . $char2 . $ext, html_entity_decode( $flag ) ); 4506 4505 4507 4506 $content = str_replace( $flag, $entity, $content ); 4508 4507 } … … 4517 4516 if ( ! empty( $matches[1] ) ) { 4518 4517 foreach ( $matches[1] as $emoji ) { 4519 4518 $char = str_replace( array( '&#x', ';'), '', $emoji ); 4520 $entity = sprintf( '<img src="%s" alt="%s" class="wp-smiley" style="height: 1em; max-height: 1em;"/>', $cdn_url . $char . $ext, html_entity_decode( $emoji ) );4519 $entity = sprintf( '<img src="%s" alt="%s" class="wp-smiley" />', $cdn_url . $char . $ext, html_entity_decode( $emoji ) ); 4521 4520 4522 4521 $content = str_replace( $emoji, $entity, $content ); 4523 4522 }