mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Emoji: Update the Twemoji library to version 13.1.0.
This version introduces support for the latest Emoji added in version Emoji 13.1, which includes “face in clouds”, “face exhaling”, and of course, “face with spiral eyes”. A new corresponding folder has been pushed to WordPress.org in [dotorg:17419]. Rages deep within, ❤️🔥. Props kraftbj., desrosj. Fixes #52852. git-svn-id: https://develop.svn.wordpress.org/trunk@51113 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
68b6298828
commit
f64478d67c
14
package-lock.json
generated
14
package-lock.json
generated
@ -24858,20 +24858,20 @@
|
||||
"dev": true
|
||||
},
|
||||
"twemoji": {
|
||||
"version": "13.0.2",
|
||||
"resolved": "https://registry.npmjs.org/twemoji/-/twemoji-13.0.2.tgz",
|
||||
"integrity": "sha512-R9tDS4pEVczjVYM5SvoAJ0AcZ4EgG1h3yw1oi1m/yrXOH17OOjaaRxZU4r5TIHEy3xYbuZQLB/tJZyC6rpQVmA==",
|
||||
"version": "13.1.0",
|
||||
"resolved": "https://registry.npmjs.org/twemoji/-/twemoji-13.1.0.tgz",
|
||||
"integrity": "sha512-e3fZRl2S9UQQdBFLYXtTBT6o4vidJMnpWUAhJA+yLGR+kaUTZAt3PixC0cGvvxWSuq2MSz/o0rJraOXrWw/4Ew==",
|
||||
"requires": {
|
||||
"fs-extra": "^8.0.1",
|
||||
"jsonfile": "^5.0.0",
|
||||
"twemoji-parser": "13.0.0",
|
||||
"twemoji-parser": "13.1.0",
|
||||
"universalify": "^0.1.2"
|
||||
}
|
||||
},
|
||||
"twemoji-parser": {
|
||||
"version": "13.0.0",
|
||||
"resolved": "https://registry.npmjs.org/twemoji-parser/-/twemoji-parser-13.0.0.tgz",
|
||||
"integrity": "sha512-zMaGdskpH8yKjT2RSE/HwE340R4Fm+fbie4AaqjDa4H/l07YUmAvxkSfNl6awVWNRRQ0zdzLQ8SAJZuY5MgstQ=="
|
||||
"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=="
|
||||
},
|
||||
"type-check": {
|
||||
"version": "0.4.0",
|
||||
|
||||
@ -147,7 +147,7 @@
|
||||
"polyfill-library": "3.105.0",
|
||||
"react": "16.13.1",
|
||||
"react-dom": "16.13.1",
|
||||
"twemoji": "13.0.2",
|
||||
"twemoji": "13.1.0",
|
||||
"underscore": "1.13.1",
|
||||
"whatwg-fetch": "3.0.0"
|
||||
},
|
||||
|
||||
@ -115,23 +115,23 @@
|
||||
return ! isIdentical;
|
||||
case 'emoji':
|
||||
/*
|
||||
* So easy, even a baby could do it!
|
||||
* Burning Love: Just a hunk, a hunk of burnin' love.
|
||||
*
|
||||
* To test for Emoji 13 support, try to render a new emoji: Man Feeding Baby.
|
||||
* To test for Emoji 13.1 support, try to render a new emoji: Heart on Fire!
|
||||
*
|
||||
* The Man Feeding Baby emoji is a ZWJ sequence combining 👨 Man, a Zero Width Joiner and 🍼 Baby Bottle.
|
||||
* The Heart on Fire emoji is a ZWJ sequence combining ❤️ Red Heart, a Zero Width Joiner and 🔥 Fire.
|
||||
*
|
||||
* 0xD83D, 0xDC68 == Man emoji.
|
||||
* 0x2764, 0xfe0f == Red Heart emoji.
|
||||
* 0x200D == Zero-Width Joiner (ZWJ) that links the two code points for the new emoji or
|
||||
* 0x200B == Zero-Width Space (ZWS) that is rendered for clients not supporting the new emoji.
|
||||
* 0xD83C, 0xDF7C == Baby Bottle.
|
||||
* 0xD83D, 0xDD25 == Fire.
|
||||
*
|
||||
* When updating this test for future Emoji releases, ensure that individual emoji that make up the
|
||||
* sequence come from older emoji standards.
|
||||
*/
|
||||
isIdentical = emojiSetsRenderIdentically(
|
||||
[0xD83D, 0xDC68, 0x200D, 0xD83C, 0xDF7C],
|
||||
[0xD83D, 0xDC68, 0x200B, 0xD83C, 0xDF7C]
|
||||
[0x2764, 0xfe0f, 0x200D, 0xD83D, 0xDD25],
|
||||
[0x2764, 0xfe0f, 0x200B, 0xD83D, 0xDD25]
|
||||
);
|
||||
|
||||
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.0.1/72x72/';
|
||||
private $svn_cdn = 'https://s.w.org/images/core/emoji/13.0.1/svg/';
|
||||
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/';
|
||||
|
||||
/**
|
||||
* @ticket 36525
|
||||
|
||||
Loading…
Reference in New Issue
Block a user