This repository contains the files served at https://twemoji.classicpress.net
11/: Twemoji version11.0.0. Used in ClassicPress 1.0.012/: Twemoji version12.0.1. Used from ClassicPress 1.0.114/: Twemoji version14.0.2. Used from ClassicPress 2.0.016/: Twemoji version16.0.1. Used from ClassicPress 2.6.0
Files are currently copied from https://github.com/jdecked/twemoji/, previously https://github.com/twitter/twemoji/.
Instructions to update Emoji releases
-
Clone this repository:
git clone https://github.com/ClassicPress/twemoji-assets -
Download the latest Twemoji release from: https://github.com/jdecked/twemoji/releases
Unzip the Twemoji release and copy the
72x72andsvgfolders from assets to a new folder in the ClassicPress repository Commit these changes and then perform agit pullon the http://twemoji.classicpress.net/ server -
Find the commit number for the release from Twemoji
gh-pages, for example for 16.0.1 https://github.com/jdecked/twemoji/tree/gh-pages/v/14.0.2 In this case49405ccIn the ClassicPress API repository: https://github.com/ClassicPress/ClassicPress-APIs Amend the
twemoji/update.shscript to use the new commit version andvlocation In the example above the line:for spec in 49405cc:v/16.0.1/svg; doCommit this change.
-
Conntect via ssh to the
https://api-v1.classicpress.netserver,git pullthe changes made in step 3 and then runupdate.shin thetwemojifolder.Check that the json has been created as: https://api-v1.classicpress.net/twemoji/
It should take the form of the commit hash, and version with some added underscores and appended with json, in this example
16fb3e0_v_14.0.2_svg.json -
In the core code for ClassicPress https://github.com/ClassicPress/ClassicPress-v2/
Create a new branch and then update the URL for the json file in the build tools
tools/build/emoji.jsAlso update the ClassicPress Twemoji URL links in the following files:
src/wp-includes/formatting.php tests/phpunit/tests/formatting/Emoji.php -
Run
grunt precommit:emojiThis command will add the Emoji Unicodes to:src/wp-includes/formatting.phpCommit these changes to your local branch and open a PR for review - done!