Title: Simple Editor Control
Author: Thomas Lloancy
Published: <strong>12.05.2024</strong>
Last modified: 26.05.2026

---

Търсене на разширения

![](https://ps.w.org/simple-editor-control/assets/banner-772x250.png?rev=3159421)

![](https://ps.w.org/simple-editor-control/assets/icon-256x256.png?rev=3159420)

# Simple Editor Control

 От [Thomas Lloancy](https://profiles.wordpress.org/tlloancy/)

[Изтегляне](https://downloads.wordpress.org/plugin/simple-editor-control.5.0.0.zip)

 * [Детайли](https://bg.wordpress.org/plugins/simple-editor-control/#description)
 * [Оценки](https://bg.wordpress.org/plugins/simple-editor-control/#reviews)
 *  [Инсталиране](https://bg.wordpress.org/plugins/simple-editor-control/#installation)
 * [Разработка](https://bg.wordpress.org/plugins/simple-editor-control/#developers)

 [Поддръжка](https://wordpress.org/support/plugin/simple-editor-control/)

## Описание

Simple Editor Control silently records every file change made through the WordPress
built-in plugin editor and theme editor. For each save it stores the diff, the editor
who made it, and the timestamp — giving you a full, browsable history.

**Features**

 * Automatic tracking — no setup required. Every save through the WP file editor
   is captured.
 * Git-style diff viewer with side-by-side and line-by-line modes.
 * Adjustable context lines (0, 3, 5, 10, 20).
 * Point-in-time file recovery — download any file as it existed at any past revision.
 * Works with all plugins and all active themes.
 * Accurate LCS-based diff engine (same algorithm as GNU diff / git) — handles insertions,
   deletions and replacements correctly.
 * Fully translatable.

**Use cases**

 * See exactly what changed when something broke.
 * Verify that no unauthorised changes were made to your plugin or theme files.
 * Recover a previous version of a file without restoring a full backup.

## Снимки на разширението

 * [[
 * [[

## Инсталиране

 1. Upload the plugin to `/wp-content/plugins/simple-editor-control/`.
 2. Activate through **Plugins  Installed Plugins**.
 3. Go to **Tools  Simple Editor Control** to see the audit trail.
 4. Start editing plugin or theme files through the WP file editor — changes are captured
    automatically.

## ЧЗВ

### Does it work with the Gutenberg block editor?

Simple Editor Control hooks into the WP file editor (plugin-editor.php / theme-editor.
php), not the post editor. It is unrelated to Gutenberg.

### Are changes tracked if I edit files via FTP or SSH?

No. Only changes made through the WordPress admin file editor are tracked.

### Is the full file stored for every revision?

No. Only the first save stores the full file content (snapshot). Subsequent saves
store only the diff, keeping the database footprint small.

### Can I delete the history?

Yes. Deactivating the plugin preserves your history. To remove it entirely, delete
the plugin — an uninstall hook will drop the database table.

### What happens on very large files?

The LCS diff engine works well on files up to a few thousand lines. For very large
files (> ~3,000 lines with low similarity), a fast-path algorithm is used that treats
the change as a full replacement.

## Отзиви

![](https://secure.gravatar.com/avatar/c4c69c0a9e0098d951460c12fd1d8ecbd8ecf9588215dc76a29116ea2a329b60?
s=60&d=retro&r=g)

### 󠀁[Go and download it](https://wordpress.org/support/topic/go-and-download-it-4/)󠁿

 [Thomas Lloancy](https://profiles.wordpress.org/tlloancy/) 01.12.2024

Wordpress editor is very handy, and you can see the difference made when a plugin
or theme was edited using that tool. It’s my plugin and i like it

 [ Прочетете 1 отзив ](https://wordpress.org/support/plugin/simple-editor-control/reviews/)

## Сътрудници и разработчици

“Simple Editor Control” е софтуер с отворен код. Към разширението са допринесли 
следните хора:

Сътрудници

 *   [ Thomas Lloancy ](https://profiles.wordpress.org/tlloancy/)

[Превеждане на “Simple Editor Control” на вашия език.](https://translate.wordpress.org/projects/wp-plugins/simple-editor-control)

### Имате интерес към разработване?

[Преглеждане на кода](https://plugins.trac.wordpress.org/browser/simple-editor-control/),
разглеждане на [SVN хранилище](https://plugins.svn.wordpress.org/simple-editor-control/),
или абонамент към [програмната история (log)](https://plugins.trac.wordpress.org/log/simple-editor-control/)
чрез [RSS](https://plugins.trac.wordpress.org/log/simple-editor-control/?limit=100&mode=stop_on_copy&format=rss).

## Списък с промени

### 5.0.0 (27-May-2026)

 * New: **One-click file restore** — every revision now has a „↺“ button. First 
   click arms it (turns red, shows „Confirm?“); second click restores the file on
   disk immediately, no FTP required.
 * New: The restoration itself is recorded as a new revision in the audit trail (
   flagged „Restored“), so the history stays complete and every rollback is reversible.
 * New: `source_type` column (`plugin`/`theme`) stored per revision — enables accurate
   path resolution on restore for both plugin files and theme files.
 * New: Inline success/error/info notice after restore, fades out automatically.
 * New: `is_restore` badge in the revision timeline for rollback entries.
 * New: File name in diff view is a clickable link that opens the file directly 
   in the WP editor (new tab). Correctly resolves plugin main file via `get_plugins()`
   and handles themes.
 * Fixed: Context lines and view mode selectors now re-render the diff instantly
   from cached data — no extra AJAX call, no stale early-return bug.
 * Fixed: DB schema auto-upgrades on plugin load via `plugins_loaded` using both`
   dbDelta` and explicit `ALTER TABLE` — `dbDelta` silently skips new columns on
   existing tables when `COMMENT` clauses are present.
 * i18n: All restore strings translatable.

### 4.1.0 (11-May-2026)

Fixed: Initial Revision Logic: Added a specific case to handle the first-ever revision
using the stored snapshot. This allows the diff to display correctly even when no
prior history exists in the database.

### 4.0.1 (11-May-2026)

 * Blunderman Syndrome: Fixed incorrect table name reference (sec_revisions).

### 4.0.0 „Reborn“ (11-May-2026)

 * Architectural Shift: Complete migration from file_modifications to the new sec_revisions
   table. Old data is deprecated in favor of a robust LCS-based diff system.
 * Security (Hardened): All AJAX endpoints now strictly require nonce validation
   + manage_options capability.
 * Security (Hardened): File download no longer exposes raw content without authentication.
 * Security (Hardened): Bulletproof path traversal prevention on snapshot reads.
 * Security (Hardened): Strict $wpdb->prepare() usage and esc_sql() on all table
   interpolations.
 * Fixed: Replaced old diff engine with a high-precision LCS (Longest Common Subsequence)
   algorithm — accurate insertions and deletions tracking.
 * Fixed: File content stored as raw PHP text, not HTML-encoded — no more decode/
   encode round-trip corruption.
 * Fixed: load_plugin_textdomain() deprecated second parameter removed.
 * Improved: New two-panel admin UI — sidebar plugin list, timeline, and professional
   diff viewer.
 * Improved: Diff viewer powered by diff2html with real-time syntax highlighting.
 * Improved: Context line count and view mode (side-by-side/inline) switchable live
   without page reload.
 * Improved: Revision list grouped by file with download-at-revision button per 
   entry.
 * Improved: Performance optimization with wp_cache_get/set on revision list queries.
 * Improved: All enqueued scripts/styles pass plugin version for cache busting.
 * Removed: Standalone ajax/get_plugin_details.php (replaced by proper wp_ajax_ 
   actions).
 * Removed: REST API route (replaced by wp_ajax_ actions with nonce + capability
   check).
 * i18n: All strings translatable; JS strings passed through wp_localize_script().

#### 3.0.1

 * Minor fixes.

## Мета

 *  Version **5.0.0**
 *  Last updated **Преди 22 часа **
 *  Active installations **10+**
 *  WordPress version ** 5.5 или по-висока **
 *  Tested up to **7.0**
 *  PHP version ** 7.4 или по-висока **
 *  Language
 * [English (US)](https://wordpress.org/plugins/simple-editor-control/)
 * Tags
 * [audit](https://bg.wordpress.org/plugins/tags/audit/)[diff](https://bg.wordpress.org/plugins/tags/diff/)
   [file editor](https://bg.wordpress.org/plugins/tags/file-editor/)[plugin editor](https://bg.wordpress.org/plugins/tags/plugin-editor/)
   [theme editor](https://bg.wordpress.org/plugins/tags/theme-editor/)
 *  [Разширен изглед](https://bg.wordpress.org/plugins/simple-editor-control/advanced/)

## Оценки

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/simple-editor-control/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/simple-editor-control/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/simple-editor-control/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/simple-editor-control/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/simple-editor-control/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/simple-editor-control/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/simple-editor-control/reviews/)

## Сътрудници

 *   [ Thomas Lloancy ](https://profiles.wordpress.org/tlloancy/)

## Поддръжка

Имате да кажете нещо? Имете нужда от помощ?

 [Разглеждане на форумите за поддръжка](https://wordpress.org/support/plugin/simple-editor-control/)