Emoji: Upgrade Twemoji to 11.2.0.

This upgrade includes general improvements to the style of a variety of emoji.

Full changelog: https://github.com/twitter/twemoji/compare/v11.0.0...v11.2.0

Props desrosj, pento.
Fixes #45133.



git-svn-id: https://develop.svn.wordpress.org/trunk@44644 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast 2019-01-18 01:41:41 +00:00
parent 73cbf3ec7d
commit d3ee420c14
5 changed files with 10 additions and 10 deletions

6
package-lock.json generated
View File

@ -15274,9 +15274,9 @@
"optional": true "optional": true
}, },
"twemoji": { "twemoji": {
"version": "11.0.0", "version": "11.2.0",
"resolved": "https://registry.npmjs.org/twemoji/-/twemoji-11.0.0.tgz", "resolved": "https://registry.npmjs.org/twemoji/-/twemoji-11.2.0.tgz",
"integrity": "sha1-fuxX0Sv9H//o1efwXaC2QipgeQ8=" "integrity": "sha512-DgTadXkRHugun6mjUf1k3ni04WC4jHOX1bN5MjuCM3nwRyIMdXIr8FmWzW5mEIZjht5jD3NaEyXC4j3POdQwyQ=="
}, },
"type-is": { "type-is": {
"version": "1.6.16", "version": "1.6.16",

View File

@ -107,7 +107,7 @@
"polyfill-library": "^3.26.0-0", "polyfill-library": "^3.26.0-0",
"react": "^16.6.3", "react": "^16.6.3",
"react-dom": "^16.6.3", "react-dom": "^16.6.3",
"twemoji": "11.0.0", "twemoji": "11.2.0",
"underscore": "1.8.3", "underscore": "1.8.3",
"whatwg-fetch": "^3.0.0" "whatwg-fetch": "^3.0.0"
}, },

View File

@ -5398,7 +5398,7 @@ function _print_emoji_detection_script() {
* *
* @param string The emoji base URL for png images. * @param string The emoji base URL for png images.
*/ */
'baseUrl' => apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/11/72x72/' ), 'baseUrl' => apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/11.2.0/72x72/' ),
/** /**
* Filters the extension of the emoji png files. * Filters the extension of the emoji png files.
@ -5416,7 +5416,7 @@ function _print_emoji_detection_script() {
* *
* @param string The emoji base URL for svg images. * @param string The emoji base URL for svg images.
*/ */
'svgUrl' => apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/11/svg/' ), 'svgUrl' => apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/11.2.0/svg/' ),
/** /**
* Filters the extension of the emoji SVG files. * Filters the extension of the emoji SVG files.
@ -5540,7 +5540,7 @@ function wp_staticize_emoji( $text ) {
} }
/** This filter is documented in wp-includes/formatting.php */ /** This filter is documented in wp-includes/formatting.php */
$cdn_url = apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/11/72x72/' ); $cdn_url = apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/11.2.0/72x72/' );
/** This filter is documented in wp-includes/formatting.php */ /** This filter is documented in wp-includes/formatting.php */
$ext = apply_filters( 'emoji_ext', '.png' ); $ext = apply_filters( 'emoji_ext', '.png' );

View File

@ -2962,7 +2962,7 @@ function wp_resource_hints() {
* The path is removed in the foreach loop below. * The path is removed in the foreach loop below.
*/ */
/** This filter is documented in wp-includes/formatting.php */ /** This filter is documented in wp-includes/formatting.php */
$hints['dns-prefetch'][] = apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/11/svg/' ); $hints['dns-prefetch'][] = apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/11.2.0/svg/' );
foreach ( $hints as $relation_type => $urls ) { foreach ( $hints as $relation_type => $urls ) {
$unique_urls = array(); $unique_urls = array();

View File

@ -6,8 +6,8 @@
*/ */
class Tests_Formatting_Emoji extends WP_UnitTestCase { class Tests_Formatting_Emoji extends WP_UnitTestCase {
private $png_cdn = 'https://s.w.org/images/core/emoji/11/72x72/'; private $png_cdn = 'https://s.w.org/images/core/emoji/11.2.0/72x72/';
private $svn_cdn = 'https://s.w.org/images/core/emoji/11/svg/'; private $svn_cdn = 'https://s.w.org/images/core/emoji/11.2.0/svg/';
/** /**
* @ticket 36525 * @ticket 36525