Ticket #41501: 41501.diff
File 41501.diff, 654 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/formatting.php
5148 5148 * @return string The encoded content. 5149 5149 */ 5150 5150 function wp_staticize_emoji( $text ) { 5151 if ( ( ( function_exists( 'mb_check_encoding' ) && mb_check_encoding( $text, 'ASCII' ) ) || ! preg_match( '/[^\x00-\x7F]/', $text ) ) && false === strpos( '&#x', $text ) ) { 5152 // The text doesn't contain anything that might be emoji, so we can return early. 5153 return $text; 5154 } 5155 5151 5156 $text = wp_encode_emoji( $text ); 5152 5157 5153 5158 $output = '';