wp/wp-includes/js/wp-emoji-loader.js
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
   113 				);
   113 				);
   114 
   114 
   115 				return ! isIdentical;
   115 				return ! isIdentical;
   116 			case 'emoji':
   116 			case 'emoji':
   117 				/*
   117 				/*
   118 				 * So easy, even a baby could do it!
   118 				 * Burning Love: Just a hunk, a hunk of burnin' love.
   119 				 *
   119 				 *
   120 				 *  To test for Emoji 13 support, try to render a new emoji: Man Feeding Baby.
   120 				 *  To test for Emoji 13.1 support, try to render a new emoji: Heart on Fire!
   121 				 *
   121 				 *
   122 				 * The Man Feeding Baby emoji is a ZWJ sequence combining 👨 Man, a Zero Width Joiner and 🍼 Baby Bottle.
   122 				 * The Heart on Fire emoji is a ZWJ sequence combining ❤️ Red Heart, a Zero Width Joiner and 🔥 Fire.
   123 				 *
   123 				 *
   124 				 * 0xD83D, 0xDC68 == Man emoji.
   124 				 * 0x2764, 0xfe0f == Red Heart emoji.
   125 				 * 0x200D == Zero-Width Joiner (ZWJ) that links the two code points for the new emoji or
   125 				 * 0x200D == Zero-Width Joiner (ZWJ) that links the two code points for the new emoji or
   126 				 * 0x200B == Zero-Width Space (ZWS) that is rendered for clients not supporting the new emoji.
   126 				 * 0x200B == Zero-Width Space (ZWS) that is rendered for clients not supporting the new emoji.
   127 				 * 0xD83C, 0xDF7C == Baby Bottle.
   127 				 * 0xD83D, 0xDD25 == Fire.
   128 				 *
   128 				 *
   129 				 * When updating this test for future Emoji releases, ensure that individual emoji that make up the
   129 				 * When updating this test for future Emoji releases, ensure that individual emoji that make up the
   130 				 * sequence come from older emoji standards.
   130 				 * sequence come from older emoji standards.
   131 				 */
   131 				 */
   132 				isIdentical = emojiSetsRenderIdentically(
   132 				isIdentical = emojiSetsRenderIdentically(
   133 					[0xD83D, 0xDC68, 0x200D, 0xD83C, 0xDF7C],
   133 					[0x2764, 0xfe0f, 0x200D, 0xD83D, 0xDD25],
   134 					[0xD83D, 0xDC68, 0x200B, 0xD83C, 0xDF7C]
   134 					[0x2764, 0xfe0f, 0x200B, 0xD83D, 0xDD25]
   135 				);
   135 				);
   136 
   136 
   137 				return ! isIdentical;
   137 				return ! isIdentical;
   138 		}
   138 		}
   139 
   139