Better Revision History
MDI Better Revision History replaces the default revision comparison screen with a clean, timeline-style meta box right inside the post editor. Every time a post is saved, the plugin records exactly what changed — field by field — and displays a clear before → after comparison.
It works out of the box for standard Posts and Pages, and is fully extensible to custom post types. If Advanced Custom Fields (ACF) is active, the plugin automatically detects which field groups, flat fields, and repeater sub-fields are registered for each post type — no manual configuration required.
Key Features
- Auto-detection of ACF flat fields per post type — no hardcoded field lists
- Auto-detection of ACF repeater fields and sub-fields per post type
- Repeater row diffing — shows which rows were Added, Updated, or Removed
- Grouped revision timeline — multiple saves within the same timestamp are merged into one entry
- Author & timestamp on every revision entry
- Settings page under Settings → MDI Revision History to enable or disable tracking per post type
- Posts and Pages can be toggled freely; custom post type integration is available on request
- Graceful fallback — works even without ACF by scanning all non-internal post meta keys
- Lightweight — no JavaScript, no external dependencies, no database tables
How It Works
Once activated, a Revision History meta box appears at the bottom of any enabled post type’s edit screen. Each saved revision is compared to the one before it. Changed fields are shown side by side: the old value highlighted in red on the left, the new value in green on the right.
For ACF repeater fields, the plugin tracks individual row-level changes and labels them clearly (e.g. Sc Film Crew — Row 2 Updated).
ACF Integration
When Advanced Custom Fields is active, the plugin queries ACF’s own field group registry (acf_get_field_groups) to discover which fields apply to the current post type. This means:
- No hardcoded field arrays to maintain
- Works automatically when you add, rename, or remove ACF fields
- Supports both flat fields (text, select, date picker, checkbox, etc.) and repeater fields with any sub-field structure
If ACF is not active, the plugin falls back to comparing all non-internal (_-prefixed) post meta keys.
Custom Post Type Integration
Posts and Pages are available directly in the settings. For custom post types, the plugin detects them automatically and lists them on the settings page with a note to contact Medium Interactive for tailored integration.
