[WordPress] 外掛分享: Simple Editor Control – File History, Diff & Restore

首頁外掛目錄 › Simple Editor Control – File History, Diff & Restore
WordPress 外掛 Simple Editor Control – File History, Diff & Restore 的封面圖片
10+
安裝啟用
★★★★★
5/5 分(1 則評價)
6 天前
最後更新
問題解決
WordPress 5.5+ PHP 7.4+ v6.0.0 上架:2024-05-11

內容簡介

Simple Editor Control 外掛能夠自動記錄 WordPress 主題與外掛檔案編輯的每一次儲存,並提供完整的檔案歷史與差異比較,讓使用者能夠輕鬆恢復先前的版本,確保網站安全與穩定。

【主要功能】
• 自動記錄每次檔案儲存
• 獨立的版本歷史,確保不會損壞
• 一鍵恢復任何版本的檔案
• 具備實時差異比較功能
• SHA-256 完整性檢查
• 自動清理舊版本,保留最新紀錄

外掛標籤

開發者團隊

⬇ 下載最新版 (v6.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Simple Editor Control – File History, Diff & Restore」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

You edited functions.php in Appearance → Theme File Editor, saved, and the site went down. Or a plugin file was quietly modified and you want to know who, when, and what exactly changed.
Simple Editor Control records every save made through the WordPress theme and plugin file editors — automatically, with zero setup. For each save it stores the complete file, compressed and sealed with a SHA-256 integrity hash, along with the user and the timestamp.
History you can trust

Every revision stores the full file content — revisions are independent, so your history can never drift or corrupt.
The very first tracked save also captures the file as it was before the change, so the original state is always recoverable.
A save is only recorded after WordPress actually wrote it. Saves that core refused or rolled back (fatal PHP error) never pollute the history.
SHA-256 integrity check on every read: a corrupted revision is detected and refused, never silently written to disk.

Diffs worthy of git

Real Myers diff algorithm (jsdiff) rendered by diff2html — side-by-side or unified, with syntax awareness.
Instant context switching (0 to 25 lines) with no server round-trip.
Added/removed line counts on every revision in the timeline.
Compare any two revisions of a file, not just consecutive ones.

Restore without fear

One-click restore of any revision (arm, then confirm — no accidental clicks).
Before overwriting, the current on-disk content is snapshotted as a new revision: a restore can never lose data, even changes made outside WordPress.
When restoring a PHP file of an active plugin or theme, the site is probed afterwards; if a fatal error is detected, the previous content is put back automatically. No white screen.
Restore requires the same capabilities as the core editors, and is disabled entirely when DISALLOW_FILE_EDIT is set — the audit trail never becomes a policy bypass.

Respectful of your site

Old revisions are pruned automatically (configurable, default: last 100 per file).
Deactivation keeps your history; deletion removes everything, including database tables.
All third-party libraries are bundled with human-readable sources: jsdiff (BSD-3-Clause) and diff2html (MIT).

延伸相關外掛

文章
Filter
Mastodon