Emoji Guard

描述

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.

安装

  1. Install the plugin from Plugins > Add New, or upload emoji-guard.zip there
  2. Activate it – this stores the reference value
  3. After a migration, open any admin screen: a warning appears if the emojis did not survive

常见问题

Who sees the warning?

Users who can manage options, which on a default site means administrators.

The warning appeared on a site I did not migrate.

Then something else rewrote the database – a backup restore, a plugin converting tables, or a search and replace. Check a few posts with emojis; if they are fine, store the reference value again with the button.

评价

此插件暂无评价。

贡献者及开发者

「Emoji Guard」是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Emoji Guard」插件已被翻译至 1 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「Emoji Guard」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

1.0.1

Bug Fixes
* show the integrity warning to administrators only (d73c40d)
* translate the integrity warning (10900f3)

1.0.0

First release