Skip to content
Sign in
Simple Editor Control – File History, Diff & Restore icon

Simple Editor Control – File History, Diff & Restore

Broke functions.php in the file editor?

Not scanned yet WordPress plugin 10 installs

Install in

No install steps yet

Follow the steps on the source page.

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).

Written by Joobi from the project's own listing. See the source page

auditdifffile editorrestorerevisions
30 Nov 2026
Version 6.0.1 released. Not scanned yet.

6.0.1

  • Fix: the initial-state revision is no longer pruned after 100 edits, so the original file stays recoverable as promised.
  • Fix: a file deleted from disk can now really be re-created by a restore (the code existed but stopped on “Could not read the current file”).
  • Fix: a restore is only rolled back if the site was healthy before it: the site is probed before and after, so an already-broken site no longer blames the restore.
  • Improved: the crash check now probes the front page and admin-ajax.php with a cache-busting argument (a cached page could hide a fatal error) and uses core’s local-SSL default.
  • Fix: file names with %xx, “<” or double spaces were altered before being looked up, so those saves were never tracked.
  • Fix: a migration from 4.x/5.x that crashes can no longer crash every admin page again: two attempts at most, never in parallel, with a higher memory limit.
  • Fix: on multisite, only super admins can browse the history; uninstalling cleans the tables and options of every site.
  • Fix: the plugin/theme list no longer confuses slugs such as “1e3” or “true” with numbers or booleans, and a slow answer for a previously selected plugin or revision can no longer replace the current view.
  • New: clicking the restore icon says which file and which date will be restored before you confirm.
  • Improved: the plugin code is only loaded in the admin, no longer on every front-end request; removed the redundant load_plugin_textdomain() call (WordPress loads the translations itself).
  • Download sends X-Content-Type-Options: nosniff.

6.0.0 (25-Aug-2026)

Complete rebuild of the storage engine, the diff pipeline and the interface.

  • New storage engine — every revision now stores the full file content (gzip + SHA-256). Revisions are independent: no more diff chains, no replay, no possible history corruption. Existing 4.x/5.x history is migrated automatically; the legacy table is preserved as a backup.
  • Fixed: restores could scramble files. The old replay applied multi-line insertions in reverse order, which could write broken PHP to disk. Migration replays old chains with the corrected order; new storage makes the bug impossible by design.
  • Fixed: the diff viewer dropped lines. Multi-line insertions were displayed as a single line at the wrong position. Diffs are now produced by jsdiff (real Myers algorithm) and match what git shows.
  • Fixed: saves are recorded only if they actually happened. Recording now happens after WordPress finished writing — saves refused by core or rolled back after a fatal error no longer appear in the history.
  • Fixed: quadratic diff engine removed. Editing large files (~2000+ lines) could exhaust PHP memory on save. Per-revision stats now use WordPress core’s Text_Diff with a size guard.
  • New: crash-proof restore. Restoring a PHP file of an active plugin/theme probes the site and rolls back automatically on fatal errors.
  • New: pre-restore snapshot. Whatever is on disk is saved as a revision before any restore overwrites it.
  • New: compare any two revisions of a file.
  • New: onboarding empty state, per-revision +/- counts, origin badges (initial state, restored, imported), user display names, local-time dates (previously shown in the wrong timezone).
  • New: automatic pruning with a configurable per-file cap (default 100).
  • New: uninstall.php — deleting the plugin now really removes its tables and options, as the FAQ always claimed.
  • New: .pot file shipped; the plugin is now actually translatable, as the readme always claimed.
  • Security: restore respects DISALLOW_FILE_EDIT / DISALLOW_FILE_MODS and requires edit_plugins / edit_themes rather than only manage_options.
  • Removed debug error_log() calls from production code.
  • Redesigned admin UI following native WordPress admin patterns.
  • Tested up to WordPress 7.1.

5.0.0 (27-May-2026)

  • One-click file restore, restore audit entries, source_type column, inline notices, editor deep links, diff re-render fixes, DB auto-upgrade.

4.1.0 (11-May-2026)

  • Fixed initial revision logic using the stored snapshot.

4.0.1 (11-May-2026)

  • Fixed incorrect table name reference.

4.0.0 (11-May-2026)

  • Migration to the sec_revisions table, hardened AJAX security, LCS diff engine, two-panel UI.

3.0.1

  • Minor fixes.
12 May 2024Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)