[wp-trac] [WordPress Trac] #63064: Update Twemoji to v15.1.0
WordPress Trac
noreply at wordpress.org
Wed Mar 12 21:26:09 UTC 2025
#63064: Update Twemoji to v15.1.0
----------------------------+-----------------------
Reporter: peterwilsoncc | Owner: (none)
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: 6.8
Component: Emoji | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
----------------------------+-----------------------
Comment (by peterwilsoncc):
@hbhalodia This is the [https://github.com/WordPress/wordpress-
develop/pull/5804 pull request for the last update] that you'll be able to
use as a guide. Some of the changes are not relevant as we needed to
change `Grunt.js` a little more than usual.
It's actually a surprisingly complex change, here are the main steps:
* Replace the twemoji file in WordPress with
[https://github.com/jdecked/twemoji/tree/gh-pages/v/15.1.0 twemoji.js from
the current release]
* Apply the WordPress changes to the file, see the
[https://gist.github.com/peterwilsoncc/cc1616795d7e6ce10a6faf8be76ab182
diff]
* Update the tests in `src/js/_enqueues/lib/emoji-loader.js` to test for
new emoji in the release, I suggest
[https://emojipedia.org/person_running_facing_right_medium_skin_tone
Person Running Facing Right: Medium Skin Tone]. This is the most complex
step.
* In various places throughout the code base, replace
`s.w.org/images/core/emoji/15.0.3` with `s.w.org/images/core/emoji/15.1.0`
* In `Grunt.js`, replace the string `v15.0.3:assets/svg` with
`v15.1.0:assets/svg`
* Run `npm run grunt precommit:emoji` which will apply some changes to the
file `src/wp-includes/formatting.php` and commit those changes.
Because it's more complex that it seems, I'm happy to help out if you find
some of the steps confusing. If it's much more than you expected and you
wish to observe how it's done this time, that's fine too.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63064#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list