[wp-trac] [WordPress Trac] #57301: Emoji feature detection is incorrect

WordPress Trac noreply at wordpress.org
Mon Feb 6 21:35:41 UTC 2023


#57301: Emoji feature detection is incorrect
------------------------------+--------------------------------------
 Reporter:  sergiomdgomes     |       Owner:  dmsnell
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  6.2
Component:  Emoji             |     Version:  5.3
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  javascript, performance
------------------------------+--------------------------------------
Changes (by flixos90):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55241" 55241]:
 {{{
 #!CommitTicketReference repository="" revision="55241"
 Emoji: Fix emoji feature detection.

 The emoji feature detection that occurs on every page load by default has
 been broken at least since [45769], causing the feature detection to fail
 for browsers that in fact support emoji correctly. This has led to the
 `wp-emoji-release.min.js` file being loaded unnecessarily even in modern
 browsers, which accounts for roughly 4.7 KB of extra JavaScript on every
 page load.

 This changeset fixes the feature detection, by using the correct sequences
 of char codes.

 Props sergiomdgomes, dmsnell, peterwilsoncc.
 Fixes #57301.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57301#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list