Changeset 44554
- Timestamp:
- 01/10/2019 11:19:37 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r44261 r44554 5478 5478 function wp_encode_emoji( $content ) { 5479 5479 $emoji = _wp_emoji_list( 'partials' ); 5480 $compat = version_compare( phpversion(), '5.4', '<' ); 5480 5481 5481 5482 foreach ( $emoji as $emojum ) { 5482 if ( version_compare( phpversion(), '5.4', '<' )) {5483 if ( $compat ) { 5483 5484 $emoji_char = html_entity_decode( $emojum, ENT_COMPAT, 'UTF-8' ); 5484 5485 } else { … … 5520 5521 // Quickly narrow down the list of emoji that might be in the text and need replacing. 5521 5522 $possible_emoji = array(); 5523 $compat = version_compare( phpversion(), '5.4', '<' ); 5522 5524 foreach ( $emoji as $emojum ) { 5523 5525 if ( false !== strpos( $text, $emojum ) ) { 5524 if ( version_compare( phpversion(), '5.4', '<' )) {5526 if ( $compat ) { 5525 5527 $possible_emoji[ $emojum ] = html_entity_decode( $emojum, ENT_COMPAT, 'UTF-8' ); 5526 5528 } else {
Note: See TracChangeset
for help on using the changeset viewer.