| 开发者 | goalprevail |
|---|---|
| 更新时间 | 2026年5月29日 23:24 |
| PHP版本: | 7.0 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL-2.0+ |
| 版权网址: | 版权信息 |
restore-old-admin-colors folder to /wp-content/plugins/, or install the plugin through the WordPress Plugins screen.No. The plugin only flips users whose admin color scheme is empty or set to the new 7.0 "Modern" default. Any explicit choice — Light, Blue, Midnight, Ocean, Coffee, Ectoplasm, Sunrise, etc. — is preserved as-is. After the one-time restore, users can pick any scheme on their profile page and the plugin will not interfere again.
No. There are no front-end assets, no settings page, and no expensive database loops on activation. The plugin runs two micro-checks against the object cache only when an admin is logged in, and after the first restore for a given user even those checks short-circuit immediately.
The plugin cleans up after itself. On deactivation it reverts every user it migrated back to the WordPress 7.0 default ("Modern"), but only if that user is still on "Fresh" — anyone who later switched to a different scheme keeps their choice. The plugin's own user metadata is also removed, leaving no leftover state in the database.
login_enqueue_scripts hook only while the plugin is active; nothing is persisted, so they disappear immediately on deactivation or deletion with no cleanup required.