Directory / plugin
Emoji Guard
v1.0.1 · by Palasthotel GmbH
Warns administrators when a database migration has broken the site's emojis.
About this plugin
Emojis are the first thing a careless database migration loses: a dump written in the wrong character set turns them into question marks, and a search and replace that does not adjust serialized string lengths makes the stored data unreadable.
Emoji Guard keeps a small reference value with emojis in an option. On every admin screen it compares that value with what it should be, and if the two differ, administrators get a warning that says what was expected and what was found. Once the cause is fixed, the button in the warning stores the reference value again.
The plugin does not touch any other data and does not repair anything – it tells you that the migration needs another look before you notice it in your content.
The reference value can be changed with the emoji_guard_value filter.