diff --git a/package-lock.json b/package-lock.json index 9b9d8cfee3..34b1c24157 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15274,9 +15274,9 @@ "optional": true }, "twemoji": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/twemoji/-/twemoji-11.0.0.tgz", - "integrity": "sha1-fuxX0Sv9H//o1efwXaC2QipgeQ8=" + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/twemoji/-/twemoji-11.2.0.tgz", + "integrity": "sha512-DgTadXkRHugun6mjUf1k3ni04WC4jHOX1bN5MjuCM3nwRyIMdXIr8FmWzW5mEIZjht5jD3NaEyXC4j3POdQwyQ==" }, "type-is": { "version": "1.6.16", diff --git a/package.json b/package.json index 657a1dca8b..32eece7aac 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,7 @@ "polyfill-library": "^3.26.0-0", "react": "^16.6.3", "react-dom": "^16.6.3", - "twemoji": "11.0.0", + "twemoji": "11.2.0", "underscore": "1.8.3", "whatwg-fetch": "^3.0.0" }, diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index 5fa1589fd1..462ebaf1f4 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -5398,7 +5398,7 @@ function _print_emoji_detection_script() { * * @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. @@ -5416,7 +5416,7 @@ function _print_emoji_detection_script() { * * @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. @@ -5540,7 +5540,7 @@ function wp_staticize_emoji( $text ) { } /** 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 */ $ext = apply_filters( 'emoji_ext', '.png' ); diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 061ebef6fd..11d4b77ff4 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -2962,7 +2962,7 @@ function wp_resource_hints() { * The path is removed in the foreach loop below. */ /** 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 ) { $unique_urls = array(); diff --git a/tests/phpunit/tests/formatting/Emoji.php b/tests/phpunit/tests/formatting/Emoji.php index aa4e05aa22..4ae62d85f6 100644 --- a/tests/phpunit/tests/formatting/Emoji.php +++ b/tests/phpunit/tests/formatting/Emoji.php @@ -6,8 +6,8 @@ */ class Tests_Formatting_Emoji extends WP_UnitTestCase { - private $png_cdn = 'https://s.w.org/images/core/emoji/11/72x72/'; - private $svn_cdn = 'https://s.w.org/images/core/emoji/11/svg/'; + 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.2.0/svg/'; /** * @ticket 36525