mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Emoji: Update the Twemoji to version 14.0.2.
This version introduces support for the latest Emoji added in Emoji 14. "Insert witty comment newly supported emoji." Props kraftbj, desrosj, dd32, milana_cap. Fixes #55395. git-svn-id: https://develop.svn.wordpress.org/trunk@53150 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
14
package-lock.json
generated
14
package-lock.json
generated
@@ -24523,20 +24523,20 @@
|
||||
"dev": true
|
||||
},
|
||||
"twemoji": {
|
||||
"version": "13.1.0",
|
||||
"resolved": "https://registry.npmjs.org/twemoji/-/twemoji-13.1.0.tgz",
|
||||
"integrity": "sha512-e3fZRl2S9UQQdBFLYXtTBT6o4vidJMnpWUAhJA+yLGR+kaUTZAt3PixC0cGvvxWSuq2MSz/o0rJraOXrWw/4Ew==",
|
||||
"version": "14.0.2",
|
||||
"resolved": "https://registry.npmjs.org/twemoji/-/twemoji-14.0.2.tgz",
|
||||
"integrity": "sha512-BzOoXIe1QVdmsUmZ54xbEH+8AgtOKUiG53zO5vVP2iUu6h5u9lN15NcuS6te4OY96qx0H7JK9vjjl9WQbkTRuA==",
|
||||
"requires": {
|
||||
"fs-extra": "^8.0.1",
|
||||
"jsonfile": "^5.0.0",
|
||||
"twemoji-parser": "13.1.0",
|
||||
"twemoji-parser": "14.0.0",
|
||||
"universalify": "^0.1.2"
|
||||
}
|
||||
},
|
||||
"twemoji-parser": {
|
||||
"version": "13.1.0",
|
||||
"resolved": "https://registry.npmjs.org/twemoji-parser/-/twemoji-parser-13.1.0.tgz",
|
||||
"integrity": "sha512-AQOzLJpYlpWMy8n+0ATyKKZzWlZBJN+G0C+5lhX7Ftc2PeEVdUU/7ns2Pn2vVje26AIZ/OHwFoUbdv6YYD/wGg=="
|
||||
"version": "14.0.0",
|
||||
"resolved": "https://registry.npmjs.org/twemoji-parser/-/twemoji-parser-14.0.0.tgz",
|
||||
"integrity": "sha512-9DUOTGLOWs0pFWnh1p6NF+C3CkQ96PWmEFwhOVmT3WbecRC+68AIqpsnJXygfkFcp4aXbOp8Dwbhh/HQgvoRxA=="
|
||||
},
|
||||
"type-check": {
|
||||
"version": "0.4.0",
|
||||
|
||||
@@ -148,7 +148,7 @@
|
||||
"react": "17.0.1",
|
||||
"react-dom": "17.0.1",
|
||||
"regenerator-runtime": "0.13.9",
|
||||
"twemoji": "13.1.0",
|
||||
"twemoji": "14.0.2",
|
||||
"underscore": "1.13.1",
|
||||
"whatwg-fetch": "3.6.2"
|
||||
},
|
||||
|
||||
@@ -115,23 +115,26 @@
|
||||
return ! isIdentical;
|
||||
case 'emoji':
|
||||
/*
|
||||
* Burning Love: Just a hunk, a hunk of burnin' love.
|
||||
* Why can't we be friends? Everyone can now shake hands in emoji, regardless of skin tone!
|
||||
*
|
||||
* To test for Emoji 13.1 support, try to render a new emoji: Heart on Fire!
|
||||
* To test for Emoji 14.0 support, try to render a new emoji: Handshake: Light Skin Tone, Dark Skin Tone.
|
||||
*
|
||||
* The Heart on Fire emoji is a ZWJ sequence combining ❤️ Red Heart, a Zero Width Joiner and 🔥 Fire.
|
||||
* The Handshake: Light Skin Tone, Dark Skin Tone emoji is a ZWJ sequence combining 🫱 Rightwards Hand,
|
||||
* 🏻 Light Skin Tone, a Zero Width Joiner, 🫲 Leftwards Hand, and 🏿 Dark Skin Tone.
|
||||
*
|
||||
* 0x2764, 0xfe0f == Red Heart emoji.
|
||||
* 0x200D == Zero-Width Joiner (ZWJ) that links the two code points for the new emoji or
|
||||
* 0x1FAF1 == Rightwards Hand
|
||||
* 0x1F3FB == Light Skin Tone
|
||||
* 0x200D == Zero-Width Joiner (ZWJ) that links the code points for the new emoji or
|
||||
* 0x200B == Zero-Width Space (ZWS) that is rendered for clients not supporting the new emoji.
|
||||
* 0xD83D, 0xDD25 == Fire.
|
||||
* 0x1FAF2 == Leftwards Hand
|
||||
* 0x1F3FF == Dark Skin Tone.
|
||||
*
|
||||
* When updating this test for future Emoji releases, ensure that individual emoji that make up the
|
||||
* sequence come from older emoji standards.
|
||||
*/
|
||||
isIdentical = emojiSetsRenderIdentically(
|
||||
[0x2764, 0xfe0f, 0x200D, 0xD83D, 0xDD25],
|
||||
[0x2764, 0xfe0f, 0x200B, 0xD83D, 0xDD25]
|
||||
[0x1FAF1, 0x1F3FB, 0x200D, 0x1FAF2, 0x1F3FF],
|
||||
[0x1FAF1, 0x1F3FB, 0x200B, 0x1FAF2, 0x1F3FF]
|
||||
);
|
||||
|
||||
return ! isIdentical;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -6,8 +6,8 @@
|
||||
*/
|
||||
class Tests_Formatting_Emoji extends WP_UnitTestCase {
|
||||
|
||||
private $png_cdn = 'https://s.w.org/images/core/emoji/13.1.0/72x72/';
|
||||
private $svn_cdn = 'https://s.w.org/images/core/emoji/13.1.0/svg/';
|
||||
private $png_cdn = 'https://s.w.org/images/core/emoji/14.0.0/72x72/';
|
||||
private $svn_cdn = 'https://s.w.org/images/core/emoji/14.0.0/svg/';
|
||||
|
||||
/**
|
||||
* @ticket 36525
|
||||
|
||||
Reference in New Issue
Block a user