Emoji Guard
Warns administrators when a database migration has broken the site's emojis.
Install in
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 the database – in the options table and, in a hidden post, in the posts and post meta tables, where your content lives. On every admin screen it compares those values with what they should be, and if one differs, administrators get a warning that says which table is affected, what was expected and what was found. The same check appears as a test under Tools > Site Health. 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. Deleting the plugin removes its reference values and the hidden post.
The reference value can be changed with the emoji_guard_value filter.
Written by Joobi from the project's own listing. See the source page
2.0.0
⚠ BREAKING CHANGES
* requires PHP 8.0 or newer
Features
* drop support for PHP 7.4 (c86ba53)
Bug Fixes
* require WordPress 4.6 (d1eb245)
1.0.1
Bug Fixes
* show the integrity warning to administrators only (d73c40d)
* translate the integrity warning (10900f3)
1.0.0
First release
Follow this listing's changes (Atom feed)