Emoji: Upgrade Twemoji to version 13.0.0.

🥸

Props kraftbj, desrosj, otto42.
Fixes #50148.

git-svn-id: https://develop.svn.wordpress.org/trunk@48048 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonathan Desrosiers
2020-06-15 18:02:14 +00:00
parent 5b69998102
commit dfcbff2db0
6 changed files with 157 additions and 87 deletions

View File

@@ -115,17 +115,23 @@
return ! isIdentical;
case 'emoji':
/*
* Love is love.
* So easy, even a baby could do it!
*
* To test for Emoji 12 support, try to render a new emoji: men holding hands, with different skin
* tone modifiers.
* To test for Emoji 13 support, try to render a new emoji: Man Feeding Baby.
*
* The Man Feeding Baby emoji is a ZWJ sequence combining 👨 Man, a Zero Width Joiner and 🍼 Baby Bottle.
*
* 0xD83D, 0xDC68 == Man 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.
*
* 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, 0xD83C, 0xDFFE, 0x200D, 0xD83E, 0xDD1D, 0x200D, 0xD83D, 0xDC68, 0xD83C, 0xDFFC],
[0xD83D, 0xDC68, 0xD83C, 0xDFFE, 0x200B, 0xD83E, 0xDD1D, 0x200B, 0xD83D, 0xDC68, 0xD83C, 0xDFFC]
[0xD83D, 0xDC68, 0x200D, 0xD83C, 0xDF7C],
[0xD83D, 0xDC68, 0x200B, 0xD83C, 0xDF7C]
);
return ! isIdentical;

File diff suppressed because one or more lines are too long

View File

@@ -3212,7 +3212,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/12.0.0-1/svg/' );
$hints['dns-prefetch'][] = apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/13.0.0/svg/' );
foreach ( $hints as $relation_type => $urls ) {
$unique_urls = array();