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:
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!
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:
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?
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.
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.
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.
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.
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!
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.
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…
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.
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.
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.
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.
Could be I’m using WP 3.3. Thsnks for reply. I’m looking forward for a fix :).
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)
Pingback: Useful WordPress plug-ins : (IP) Law in Canada
Pingback: My WordPress Setup — Spencer Finnell
Pingback: Wordpress plugins « Media & Passie
Pingback: Control Your WordPress Post & Page Revisions with Revision Control Plugin | Webmaster Crunch
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.
Pingback: 【部落】WordPress外掛紀錄 | 夢墟空城
Pingback: Seedvip » Blog Archive » รวม WordPress Plugins
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
thank
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
Pingback: Top10 WordPress Plugins | fotobeam
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!
Pingback: รวม WordPress Plugins ผู้แสนดี : Meeja Dev Blog
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.
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” />
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?
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.
Pingback: プラグインのインストール (初期設定) [WordPress] | ハコヅメ
Pingback: Malá rekapitulace | Marmej`s blog
Pingback: ハコヅメ » 再整理、30 のプラグイン 一覧 [WordPress]
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.
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.
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.
Pingback: WordPressで使用しているプラグインのまとめ | オンゲトネ:無料オンラインゲーム情報やレビ
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
Pingback: WordPressの肥大化するDBをクリーン化するプラグイン WordPress | Luke Itoh Official Weblog
Pingback: 現在使用中のWordPressプラグイン30個 « Just Another Life
Pingback: » Our favorite WordPress Plug-ins Pattaya Web Services – wesbite design & SEO in Pattaya, Thailand
Pingback: Les extensions Wordpress du Katorz | Katorz'
Pingback: WordPress 2.7 日本語版登場! » Wing World
Pingback: CoDA.org | WordPress | PHP | Search Engine | CMS | Kneedeep Online
Pingback: Mandatory WordPress Plugins - WordPress Succes(s)
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!
Pingback: サイトで使っているWordpressプラグイン21個
Pingback: 網友推薦外掛 | JK技術文件
Pingback: まとめ:おすすめの WordPress プラグイン (19 個) | attosoft.info Blog
Pingback: Extensions WordPress de CarmaBlog | CarmaBlog
Pingback: 30 Most Important WordPress Plugins | Phire Base - Graphic, Webdesign, Inspiration. Adobe & WP
I cant see the metabox =(
3.2.1–es_ES
Versión 2.1
Make sure you’ve got the Revisions Metabox enabled in the Screen Options on the post editing page.
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…
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.
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…
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.
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!
Wow, thanks for the great plug-in! New to wordpress and my revisions were stacking up. Works like a charm. Easy to use.
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.
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.
Pingback: Grote schoonmaak – samenvatting van 3 jaar devblogs | WPdevil – Devilish Development
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
Pingback: GaryHumble.com | 6 #WordPress plugins not to leave home without
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.
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.
Could be I’m using WP 3.3. Thsnks for reply. I’m looking forward for a fix :).
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)
Pingback: Wordpress Starter Kit With The Most Useful Plugins | LETTER EYE MEDIA