diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index 4356b8b328..579d6b853b 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -4275,7 +4275,7 @@ function wp_staticize_emoji( $text ) { $chars = str_replace( array( '&#x', ';'), '', $flag ); list( $char1, $char2 ) = str_split( $chars, 5 ); - $entity = ''; + $entity = sprintf( '%s', $cdn_url . $char1 . '-' . $char2 . $ext, html_entity_decode( $flag ) ); $content = str_replace( $flag, $entity, $content ); } @@ -4290,7 +4290,7 @@ function wp_staticize_emoji( $text ) { if ( ! empty( $matches[1] ) ) { foreach ( $matches[1] as $emoji ) { $char = str_replace( array( '&#x', ';'), '', $emoji ); - $entity = ''; + $entity = sprintf( '%s', $cdn_url . $char . $ext, html_entity_decode( $emoji ) ); $content = str_replace( $emoji, $entity, $content ); }