Revision Control

WordPress.org Plugin Page: Revision Control

Revision Control is a plugin for WordPress which gives the user more control over the Revision functionality.

The plugin allows the user to set a site-global setting (Settings -> Revisions) for pages/posts to enable/disable/limit the number of revisions which are saved for the page/post. The user may change this setting on a per-page/post basis from the Revisions Meta box.

The plugin also allows the deletion of specific revisions via the Revisions post metabox.

Screenshots

  1. revision-control screenshot 1

    The Revisions Meta box

  2. revision-control screenshot 2

    Revision Controls global settings

Recent Changes

2.1

  • Belorussian Translation from MarcisG
  • Bugfix: Delete Taxonomy relations for Revisions upon revision deletion
  • Bigfix: Compare/Delete toggling
  • Correct styling for WordPress 3.2+

2.0.1

  • Small IE bug fix, Table formatting was a bit wacky.
  • RECALLED update, Had brought up some issues in other browsers

2.0

  • Rewrite from scratch(99%) utilising 2.9 only functionality
  • Better support for custom post types, Next release will finialise it in line with WordPress 3.0 development
  • Storing of Taxonomy changes in revisions (eg. You can see that TagX was added, while Category Z was removed.)
  • Translations:
  • German Translation from Tux
  • Hebrew Translation from Elad Salomons - http://elad.blogli.co.il
  • Russian Translation from Lecactus
  • Italian Translation from Stefano Aglietti
  • Estonian Translation from Lembit
  • Japanese Translation from Tai

2.0-pre

  • Swedish Translation from Linus
  • Estonian Translation from "Lembit Kivisik" lembit@designux.com

1.9.x

  • Belorussian translation from Marcis

1.9.7

  • 1.9.2, 1.9.3, 1.9.5 all seem screwy, Something was wrong with my SVN client, it was commiting from a previous revision and not my current revision...
  • 2.8.1 compatibility

1.9.1

  • Small bugfixes

1.9

  • Spanish Translation from Alejandro
  • Turkish Translation from Semih
  • Latvian Translation from Rolands
  • Fix 'Disabled' per-object checkbox
  • Introduce DD32's common data class, Adds Update version changelog functionality
  • WP 2.7 compatibility, This is mainly a maintanence release until version 2.0 is fully finalised.

1.8

  • German Translation from Tux
  • Czech Translation from Pavel
  • Dutch Translation from Steven
  • Russian Translation from Кактус
  • French Translation from David
  • Bug fix: Limit revisions dropdown sticks to 2 revisions on admin panel.
  • No features added.

1.7

  • Fix a bug with Firefox stealing the focus on the Revision limit drop-down, Thanks Viper007Bond
  • Added HeBrew translation, Thanks Elad!
  • No features added.

1.6

  • oops, Forgot something from 1.5: If you set the page/posts's option to the same as the default, Then the per-page option is now forgotten.

1.5

  • Skipped 1.4
  • Sticking option values should finally be fixed.
  • Thanks to Translators, Apologies to Translators for releasing 1.5 with changes before getting updated lang files

1.1, 1.2, 1.3

  • Italian & Japanese Translations
  • Allows Deletion of a Single revision via the Revisions post box
  • The global setting has been divded into Posts and Pages, The setting should now stick past a page load
  • The per-post setting should now correctly work again (After a bug introduced in 1.2)

1.0

  • Initial Release

196 thoughts on “Revision Control

  1. Pingback: Useful WordPress plug-ins : (IP) Law in Canada

  2. Pingback: My WordPress Setup — Spencer Finnell

  3. Pingback: Wordpress plugins « Media & Passie

  4. Pingback: Control Your WordPress Post & Page Revisions with Revision Control Plugin | Webmaster Crunch

  5. MJ said:

    Dion, thanks for awesome plugin. I have been using older version, which was working well, but after upgrading to 2.0, I am missing “remove” links to remove actual revisions… I am running WP 3.0.1:

    ie: http://img820.imageshack.us/img820/5035/dionrevisionctrl20.png

    Can you, please, help mi with this issue?
    Thanks.

  6. Pingback: 【部落】WordPress外掛紀錄 | 夢墟空城

  7. Pingback: Seedvip » Blog Archive » รวม WordPress Plugins

  8. Julius said:

    Hi,
    like MJ I’m using wp 3.01 and I’m also missing the “Delete” or “Remove” buttons at the revisions meta box.
    It would be great, if you could solve that issue!

    regards,
    Julius

  9. Chris said:

    Dion, thanks for the great plug.

    One note: I’m on WP 3.01 and I think I’m having the same issue as Julius & MJ > No delete buttons as shown in the screenshots.

    Chris

  10. Pingback: Top10 WordPress Plugins | fotobeam

  11. I think you select the revisions you want to delete and then just save the page. Am I correct in my assumption? Can anyone confirm this for me?

    Btw, just installed this for the first time and I only wish the majority of plugins available were so useful. THANKS!

  12. Pingback: รวม WordPress Plugins ผู้แสนดี : Meeja Dev Blog

  13. Just installed on 3.0.1 version of wordpress could not find the delete button showed on the screenshot. please check. Nice plugin by the way.

  14. Maro said:

    Checked the PHP file and found a fix that seems to work fine.

    Open revision-control.php and go to line 615. Notice that at the end of the line, a style determines that the Delete button should be hidden. Delete that part so that line 615 reads:

    <input type="button" class="button-secondary toggle-type" value="” id=”revisions-delete” />

  15. Maurice said:

    I can only concur with Julius: both the (batch) Delete button as well as the (per-revision) Remove buttons are not present in WP 3.0.1. When looking at the “fix” of Maro, I saw that the PHP file has explicitly commented-out the Remove button. Perhaps the 2.0 delivery has been bug-fixed for WP 3.0.1 only partially?

  16. Nick said:

    Re: missing delete button.

    Version 2.0.1 has this problem. Version 2.0 does not have this problem.

    When you install from the repository, it claims you’re installing 2.0, but you’re really installing 2.0.1, you can check the plugin version after it’s installed.

    A diff of the two versions shows only two changes in the code. (I’m showing tags using [] so they won’t get stripped here in the forum.)

    On line 653, there was a typo in 2.0, a [/th] tag was corrected to [/td] in 2.0.1; this was not causing the problem.

    On line 613, some formatting was removed.
    On version 2.0.1 the line reads:
    [td colspan="4"]

    On version 2.0 the line reads:
    [td colspan="4" style="text-align:left" class="check-column"]

    When I edited version 2.0.1 and restored this formatting, the delete button came back.

  17. Pingback: プラグインのインストール (初期設定) [WordPress] | ハコヅメ

  18. Pingback: Malá rekapitulace | Marmej`s blog

  19. Pingback: ハコヅメ » 再整理、30 のプラグイン 一覧 [WordPress]

  20. Ron said:

    I downloaded 2.0.1 version of Revision Control Plugin to my PC, then applied suggested patches for “Delete Button” problem. Uploaded modified .zip to WP 3.1 and activated plugin. Config screen is available under Settings, but I cannot find “Revisions Meta Box” as given in Screenshots example or any screen to Display/Remove/Restore Page or Post revisions. I’m fairly new to WP – what am I missing? Any suggestions greatly appreciated.

    • As of WordPress 3.1 you might need to enable the Revisions metabox. Have a look in the screen options at the top of the post page.

  21. Ron said:

    Many thanks, DD32. Failure to enable the Screen Option “Post Revisions” on both Post and Page update screens was exactly my problem. After applying the one line patches to revision-control.js and revision-control.php as suggested by Word Press Support member “ttf” to correct the missing Delete button, the plugin works perfectly with WP 3.1.

  22. I’m using WP 3.1 and Your plugin ver 2.0. I install and set-up revisions to 3 for posts and 3 for pages and dont know where can I find the revisions? In list of posts (pages) is only 1 row for each post (page). I’m beginner in worpdress pls help.
    Thank You.

  23. Pingback: WordPressで使用しているプラグインのまとめ | オンゲトネ:無料オンラインゲーム情報やレビ

  24. Jamie said:

    revision-control: when it deletes the post, it doesn’t delete the wp_term_relationships entry.

    To show you, I just did a revision, then deleted it with your plugin, then did a diff on the old and new:

    INSERT INTO `wp_options` VALUES (3647,0,’del_revision_no’,’117′,’yes’);
    47217a47218
    > INSERT INTO `wp_term_relationships` VALUES (28213,7,0);
    47769c47770
    — Dump completed on 2011-05-01 19:35:48

  25. Pingback: WordPressの肥大化するDBをクリーン化するプラグイン WordPress | Luke Itoh Official Weblog

  26. Pingback: 現在使用中のWordPressプラグイン30個 « Just Another Life

  27. Pingback: » Our favorite WordPress Plug-ins Pattaya Web Services – wesbite design & SEO in Pattaya, Thailand

  28. Pingback: Les extensions Wordpress du Katorz | Katorz'

  29. Pingback: WordPress 2.7 日本語版登場! » Wing World

  30. Pingback: CoDA.org | WordPress | PHP | Search Engine | CMS | Kneedeep Online

  31. Pingback: Mandatory WordPress Plugins - WordPress Succes(s)

  32. Pedro said:

    Hi,

    I sent you an email with the pt-PT translation of the last version (2.1) with a bug report and suggestion. Did you receive? If not, please drop me an email with the correct email to send you again!

    Congrats regarding your plugin!

  33. Pingback: サイトで使っているWordpressプラグイン21個

  34. Pingback: 網友推薦外掛 | JK技術文件

  35. Pingback: まとめ:おすすめの WordPress プラグイン (19 個) | attosoft.info Blog

  36. Pingback: Extensions WordPress de CarmaBlog | CarmaBlog

  37. Pingback: 30 Most Important WordPress Plugins | Phire Base - Graphic, Webdesign, Inspiration. Adobe & WP

    • Make sure you’ve got the Revisions Metabox enabled in the Screen Options on the post editing page.

  38. Abel said:

    Great plugin… however, if you have *lots* of revisions to delete (because, let’s say, you didn’t realize all your revisions were piling up in the database) it would be nice if you could check the Delete box at the top (ie, marking everything for deletion) then uncheck the ones you wanted to keep (like your current revision)…

    As it stands, current and autosave revisions are grayed out… but they do become checked (marked for deletion) if you check that top Delete box… and you can’t uncheck them ’cause they’re grayed out… so, the only way to clear out old revisions (and i’ve got hundreds of them) is to check them off one by one… ouch… would be nice if that could be fixed…

    • As it stands, current and autosave revisions are grayed out… but they do become checked (marked for deletion) if you check that top Delete box… and you can’t uncheck them ’cause they’re grayed out…

      That’s a WordPress core Javascript bug which wasn’t worth working around, Autosaves will *never* be deleted by this plugin, even if they are checked for deletion, That should be fixed in an upcoming WordPress release.

  39. Abel said:

    Actually, I take that back: although it does work as I’ve described, if you set things up to only retain x number of revisions, then update the post, all the old revisions get wiped out in one fell swoop…

  40. Abel said:

    Ah, geez, sorry for the multiple posts… updating removes the old revisions from the edit page but appears *not* to remove them from the DB…

    Dion, perhaps you could clarify how this is supposed to work?

    • If they’re not listed on the edit screen, they shouldn’t be in the database. Of course, you will have umpteen other revisions in the database though, it won’t delete those which do not refer to the current post.

      • Abel said:

        yes, that now appears to be the case… could be that my myPHPadmin session wasn’t refreshing properly when i first ran the update…

        thx!

  41. Wow, thanks for the great plug-in! New to wordpress and my revisions were stacking up. Works like a charm. Easy to use.

  42. kim c said:

    What do I do about this? Version 2.1
    Error: WP_POST_REVISIONS is defined in your wp-config.php. Revision Control cannot operate.
    tnx.

    • Nick said:

      You remove the definition of WP_POST_REVISIONS from your wp-config.php file. That definition conflicts with the plugin.

      That definition is not a standard part of your config file, you added it to control the number of revisions. But now you’ll be using this plugin to do that.

  43. Pingback: Grote schoonmaak – samenvatting van 3 jaar devblogs | WPdevil – Devilish Development

  44. Patrik said:

    Is there a way run v2.1 in German? I’ve seen that there is a translation from Tux for 2.0. Will it also work with 2.1 and how do I have to enable it?

    Txs
    Patrik

  45. Pingback: GaryHumble.com | 6 #WordPress plugins not to leave home without

  46. paul said:

    There’s a bug I think, in my case I’ve set “Do not store revisions” for Pages and Posts. In my single page Revision Control is also set to “Do not store revisions” but [Autosave] revisions are saved. I’ve checked it in the DB.

    • Autosaves are not part of the Revisions system, and are required to be stored for other functionality of the post editing screen to be used.
      I’d love to remove the “do not store revisions” option entirely from the plugin, but unfortunately that is what the majority of people use it for.

      tl;dr: This plugin is designed to control the number of revisions stored, Not to turn revisions off, nor to prevent post ID’s increasing higher than the number of posts.

      • paul said:

        ok, I’ll make a walk around but it’s tricky because the autosave entry isn’t displayed in the revision list but it exists in the DB.

        • That partially sounds like a bug, I’ll have to take a closer look at it then.
          IIRC, The autosaves are supposed to be showing in the list, and last time i used the plugin, that’s exactly what was happening. It might be a 3.3 incompatibility or something.

          • paul said:

            Could be I’m using WP 3.3. Thsnks for reply. I’m looking forward for a fix :).

          • paul said:

            I’ve fixed my problem by changing:
            line 156 from: define(‘WP_POST_REVISIONS’, 0);
            to: define(‘WP_POST_REVISIONS’, ‘never’);
            in revision-control.php

            now the autosave revision shows up when plugin set to “Do not store revisions” and post set to “Do not store revisions”.

            But I don’t know if this fix is 100% working.

            It has something to do with wp_get_post_revisions() method in wp-includes\post.php.

            Before changeing the plugin code echo WP_POST_REVISIONS at the begining of wp_get_post_revisions() the resulted:

            - if plugin set to “Do not store revisions” and post Revision Control set to “Do not store revisions” result was 0 (autosave revision wasn’t visible)

            - if plugin set to “Do not store revisions” and post Revision Control set to “Default revision settings” result was ‘never’ (autosave revision wasn visible)

  47. Pingback: Wordpress Starter Kit With The Most Useful Plugins | LETTER EYE MEDIA

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>