Description
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.
Installation
- Upload the
mdi-better-revision-historyfolder to/wp-content/plugins/. - Activate the plugin through the Plugins screen in WordPress.
- Go to Settings MDI Revision History to enable revision tracking for Posts, Pages, or custom post types.
- Open any enabled post or page — the Revision History meta box will appear once there is at least one revision.
FAQ
-
Does this replace the built-in WordPress revision system?
-
No. It adds to it. WordPress continues to store revisions as normal. This plugin simply provides a much more readable meta box for viewing what changed between saves.
-
Does it work without Advanced Custom Fields?
-
Yes. Without ACF active, the plugin falls back to comparing all non-internal post meta keys automatically.
-
Can I enable it for my custom post type?
-
Custom post types are detected automatically and listed on the settings page. Because field structures vary greatly per project, enabling them for full ACF tracking is available as a custom integration. Contact us for details.
-
Why can I not see any revisions?
-
WordPress must have revisions enabled. Check that
define( 'WP_POST_REVISIONS', false )is not set in yourwp-config.php. Also note the meta box only appears once at least one revision exists for that post. -
Does it slow down the admin?
-
No. The plugin only runs on post-edit screens for enabled post types, and only reads existing revision data — it does not add any extra save hooks or background processing.
-
Is it translation-ready?
-
Yes. All user-facing strings use the
mdi-better-revision-historytext domain.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Better Revision History” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Better Revision History” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- Initial release.
- Settings page with per-post-type enable/disable.
- Auto-detection of ACF flat fields and repeater fields per post type.
- Grouped revision timeline with author, timestamp, and before/after field comparison.
- Graceful fallback for sites without ACF.
