diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 9386be5e52..0f6fc558dd 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -4212,7 +4212,7 @@ function wp_encode_emoji( $content ) { */ $unpacked = unpack( 'H*', mb_convert_encoding( $emoji, 'UTF-32', 'UTF-8' ) ); if ( isset( $unpacked[1] ) ) { - $entity = '&#x' . trim( $unpacked[1], '0' ) . ';'; + $entity = '&#x' . ltrim( $unpacked[1], '0' ) . ';'; $content = str_replace( $emoji, $entity, $content ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 5d1f33e242..18ad39d777 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-beta3-31925'; +$wp_version = '4.2-beta3-31926'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.