Disable Revisions and Autosave plugins
25th July 2008
Edit Dec. 19, 2008 - The plugins are WordPress 2.7 compatible.
I’ve already reported about WordPress revisions and autosave problem yesterday.
I was thinking about a quite different solution and the I found that it’s really trivial to prepare three WordPress plugins that can disable Revisions, Autosave or both of them at the same time.
disable-autosave.zip (Right Click - Save As) - Disable Autosave function
disable-revisions.zip (Right Click - Save As) - Disable Revisions function
disable-revisions-and-autosave.zip (Right Click - Save As) - Disable Revisions and Autosave at the same time.
Using a plugin is far faster and easier than editing the wp-config file; plus everyone can Activate or Deactive them whenever is needed.
I’ve got very limited time to test them, but I’m actually using the “disable-revisions-and-autosave” on this blog and as far as I can say it works flawlessly.
Every comment or hint is very welcome!
The disabling Autosave plugin was already online yesterday, but I’ve slightly modify it to report the original code author.
EDIT 11 Sept. 2008
Some comments are not visible (removed) due to DB problems.
During the last weeks an hacking attempt led against the ISP on which Exper Chaotic Flow is currently running forced me to switch to a temporary server which trashed the last automatic DB recovers.
I’ll updated this post’s comments by hand as soon as I’ll have some spare time; some of the vanished ones are still there on my local backup.
Sorry for the setback.








25 July 2008 at 8:23 pm
[...] heute gibt es nun die ersten Plugins, mit denen man diese Funktion deaktivieren kann. Gleichzeitig kann man sich auch eine Version des [...]
26 July 2008 at 7:54 am
[...] Perun gefunden: Ein Plugin, das die Versionierung deaktiviert, die ab WordPress 2.6 eingebaut ist. Brauche ich eh nicht und müllt nur die Datenbank zu. [...]
26 July 2008 at 12:50 pm
[...] Plugin sorgt dafür, dass man diese ungeliebten Funktionen nun deaktivieren kann. Auf exper.3drecursions.com gibt es gleich 3 hilfreiche Wordpress Plugins die helfen [...]
26 July 2008 at 4:57 pm
[...] Ihr die Datei nicht editieren möchtet, dann könnt Ihr euch auch einfach dieses kleine Plugin downloaden, denn damit geht es noch [...]
27 July 2008 at 5:48 am
[...] 至于如何管ç†自åЍä¿Âå˜功能。网络上æµÂ行较多的是çâ€Â¨disable-autosaveæÂ’ä»¶æÂ¥å°†å…¶ç¦Âçâ€Â¨Ã£â‚¬â€š(p.s,该作者新出了disable-revisionå’Œdisable-autosave and revisionæÂ’件,在链接页å¯以下载)。 [...]
27 July 2008 at 1:22 pm
[...] mögliche Weg wäre ein Plugin, zu finden hier in drei Versionen, entweder nur Revisionierung abschalten, oder nur autosave abschalten oder beides [...]
28 July 2008 at 9:32 am
Hey thanks for the plugin! It actually stopped my post IDs from jumping exponentially, something the other “disable-post-revisions” plugins didn’t do. (: ^^
28 July 2008 at 10:58 am
Glad you liked it Hikoto.
I’ve used it during the last days and yes… it works.
What other plugins did you found?
Maybe I’ve got to put it also on the WP plugins repository.
29 July 2008 at 2:06 am
Yeah I think you absolutely should! That way, we could update our plugin via the dashboard once a new version is available (if there is one!)
The other fixes I tried were the “insert 2 lines into your wp-config file” and this plugin. Both really didn’t manage to disable autosave that’s why I think the IDs were still jumping.
I don’t use “pretty permalinks” that’s why I’m so concerned about the IDs. It’s a just a little naggy preference of mine.
29 July 2008 at 9:12 am
[...] 找到一个å«Disable Revisions and Autosave plugins的东东,ä¸Âä»…å¯以关é—Ârevision,还å¯以关é—Âautosave功能。25th July 2008 新出的,还冒ç€çƒÂæ°â€Ã¥â€˜Â¢Ã¯Â½Å¾Ã‚ [...]
29 July 2008 at 1:36 pm
[...] Disable Revisions and Autosave plugins [...]
31 July 2008 at 1:57 pm
@Hikoto: I’ve added the repository plugin request; I’m currently waiting for the subver code.
31 July 2008 at 3:46 pm
[...] ã€Â解决办法】阉掉它,请è§Â水煮鱼的文章:http://fairyfish.net/2008/07/15/disable-post-revision/,如果想连自动ä¿Âå˜功能也ç¦ÂæÂ¢çš„è¯Â,请使çâ€Â¨Disable autosaveæÂ’ä»¶ [...]
31 July 2008 at 5:49 pm
Thanks for this plugin. Too bad things have to be dealt with by plugins instead of a simple option.
31 July 2008 at 6:41 pm
You’re welcome Ben.
That’s for sure. Up to now I’ve got some headaches after updating to 2.5 and then 2.6 but, as far I can see, WP still seems the best solution; to me, at least.
The
Dev team don’t seems intentioned in putting Revisions and Autosave options in the Admin panel, so… what can I say?
We’ll use the plugin solution. Better than nothing!
1 August 2008 at 11:20 pm
[...] Post-Revisions deaktivieren Category: WordPress Habe hier ein praktisches Plugin gefunden, das es erlaubt, die Post-Revisions in WordPress abzustellen. Ob [...]
2 August 2008 at 2:51 pm
Nice Plugin
Thanks For posting such a nice plugin
4 August 2008 at 9:50 am
[...] keinen Code schreiben möchte kann auch ein Plugin für diese Aufgabe nutzen. Hier gibt es einige Plugins die sich mit dieser Problematik [...]
4 August 2008 at 6:47 pm
[...] In general, I don’t recommend plugins unless it’s completely necessary. But, if you don’t feel like mucking around with PHP or your files, then you can also turn off your post revisions with a handy little plugin. [...]
6 August 2008 at 10:31 am
when write new post and add a new custom field, Disable Revisions and Autosave plugins was not work.
Also automatically will preserve has the rough draft, if I will increase 2 from the definition field, will have two rough drafts to preserve
6 August 2008 at 7:45 pm
Brilliant! Thank you sooooooo much!
25 August 2008 at 9:48 am
[...] reasons) the same idea that editing the file might not always work or be possible and made a little plugin to disable the feature. All that is left to do after installing it is to cleanup the database [...]
2 September 2008 at 8:00 am
[...] de este problema, intenté encontrar una solución a través de Google, y por suerte la encontré en Expert Chaotic Flow, a través del Foro de [...]
4 September 2008 at 1:43 am
[...] Download [...]
4 September 2008 at 2:24 am
Oh, thank goodness! You’re a lifesaver. I make tons of little revisions to most of my posts, both blog and CMS, and the revision list and id jumping are driving me crazy! I mean, some of us actually use post IDs in the templates, for menus and whatnot, and I don’t want to have them be three miles long six months from now. *exasperated* Otto pissed me off so bad on this issue, and Ryan isn’t any better.
So thank you again!
4 September 2008 at 7:17 am
[...] ç¬¬äºŒç§æ–¹æ³•,安装æ’件,推è使用æ’ä»¶disable-autosave [...]
5 September 2008 at 5:37 pm
great stuff dude, this really helped me!
9 September 2008 at 12:35 pm
Thanks!I am a Chinese user.
10 September 2008 at 10:53 am
Is it possible to keep the Autosave-function itself alive, just without creating new post ids for the autosave?
10 September 2008 at 11:49 am
Thanks a lot to everyone, glad it was useful.
@Andy: WordPress 2.6.x changed the Autosave function; it always creates e new revision now.
The old 2.5.x function could be implemented back via plugin, as far as I can imagine, but I didn’t tried it and I’ve actually got to much limited spare time to test it. Who knows… maybe soon or later.
12 September 2008 at 5:08 am
[...] Disable Revisions and Autosave plugins 使用它, 你能很方便地禁用autosave或revisions, [...]
12 September 2008 at 10:27 am
[...] the WordPress Disable Revisions and Auto save plug-in page, you can actually download separate plug-ins according to your [...]
12 September 2008 at 11:40 am
Great plugin. I am downloading disable revisions plugin…
14 September 2008 at 7:44 am
[...] http://exper.3drecursions.com/2008/07/25/disable-revisions-and-autosave-plugin/ [...]
15 September 2008 at 6:10 pm
[...] Disable Revisions and Autosave plugins [...]
19 September 2008 at 6:23 am
[...] http://exper.3drecursions.com/2008/07/25/disable-revisions-and-autosave-plugin/ [...]
25 September 2008 at 7:58 am
[...] 关闭日制修订版本和自动保存功能也可以通过Disable Revisions and Autosave plugins来实现。下载之后安装此插件,启用即生效。 [...]
30 September 2008 at 10:12 am
[...] Disable Revisions and Autosave [...]
5 October 2008 at 12:54 pm
[...] 1,「Disable Revisions and Autosave」をダウンロード 2,解凍してdisable-revisions-and-autosave.phpファイルを /wp-content/pluginsへアップロード 3,管理画面でプラグインを有効化する これでインストール完了です。 これでリビジョン管理機能と記事の自動保存機能が無効になります。 前の記事 : スマイリーアイコンを表示出来るプラグイン「WP Grins」 Wordpressが使えるレンタルサーバーはこちら - スポンサードリンク - このエントリーのトラックバックURL: [...]
6 October 2008 at 12:01 pm
[...] and delete the Products page revisions. To prevent the problem occurring again I installed the Disable Revisions and Autosave plugin. I recommend you do this before you install WP [...]
13 October 2008 at 12:50 pm
Let me try this great plug-in, I have to go to phpAdmin weekly. I believe this will help me a lots if it’s work
Thanks.
17 October 2008 at 9:46 am
[...] 关闭日制修订版本和自动保存功能,也可以通过Disable Revisions and Autosave plugins插件来实现。安装之后启用即可生效。 [...]
21 October 2008 at 1:02 pm
[...] ↓これだ! 【Disable Revisions and Autosave plugins】 [...]
26 October 2008 at 7:52 am
[...] disable-revisions-and-autosave : いつの間にか追加去られた「投稿リビジョン機能」を慌てて停止するために。 こちらのサイトでダウンロード可能。公開されているのは「自動保存」「投稿リビジョン」「自動保存+投稿リビジョン」三種類あって、お好きなものを選べばよろしいかと。自動保存については残しておいてもいいかなぁと思ったけど勢いで両方とも止められるやつを選んだ! [...]
28 October 2008 at 4:59 pm
Hi there. Great plugin! BUT, there is any way I can delete old archived revisions? Since them are useless and consuming a high amount of db space.
30 October 2008 at 11:26 am
[...] evitare che il database diventi troppo pesante, è possibile disabilitare questa funzionalità, oppure limitare il numero di revisioni per ogni articolo. E’ sufficiente aggiungere nel file [...]
30 October 2008 at 5:32 pm
Hi Marcelo,
sorry for the long delay.
You can can delete all the old revisions this way
1: Log into your phpMyAdmin panel
2: Backup the whole DB
3: Click on the SQL -> SQL query
4: Copy, paste and run the code in “Run SQL query”
DELETE a,b,c FROM wp_posts a LEFT JOIN wp_term_relationships b ON (a.ID=b.object_id) LEFT JOIN wp_postmeta c ON (a.ID=c.post_id) WHERE a.post_type='revision';Note: you have to change the table prefix “wp” to the one you’re really using.
2 November 2008 at 5:35 am
[...] 今天又加了个插件Disable Revisions and Autosave [...]
5 November 2008 at 7:13 pm
Thanks for distributing this. It was badly needed.
DAN
10 November 2008 at 12:22 am
[...] Ancak, eğer php dosyalarıyla o kadar içli dışlı değilseniz ve uğraşmak istemiyorsanız, handy little plugin eklentisi ile yazı revizyonlarını devre dış [...]
13 November 2008 at 6:09 pm
[...] There are sme other plugins that do this, but as I am using Post control alreay on most of my CMS-needing websites, I find it useful. If you still need a separate plguin, try this one or that one. [...]
16 November 2008 at 5:13 pm
[...] ini dapat anda download di exper.3drecursions.com. Cara penginstalan plugin ini sama dengan plugin yang lainnya. Cukup upload ke direktori plugins, [...]
22 November 2008 at 6:02 am
[...] 一:优化数据库 空间本来不够大,wordpress的自动保存修定版本的功能让我的数据库很吃紧。在网上查了下解决办法: 1. 在wp-settings.php中找到如下语句(用EditPlus打开在第447行): $default_constants = array( ‘WP_POST_REVISIONS’ => true ); 修改为: $default_constants = array( ‘WP_POST_REVISIONS’ => false ); 2. 在wp-config.php中添加: define(’WP_POST_REVISIONS’, false); 3. 将以上两个文件utf-8格式保存,上传覆盖原有文件即可。 另外一种解习办法就是用插件:Disable Revisions and Autosave。有三种:取消自动保存,取消自动保存修定版本和两者都取消,可根据需要选择下载。 [...]
28 November 2008 at 7:25 am
[...] 今天又加了个插件Disable Revisions and Autosave 大家都知道WordPress 2.6的Post Revisions 和 Autosave功能很烦。 [...]
29 November 2008 at 11:33 am
[...] Disable Revisions and Autosave plugins 投稿記事のリビジョンと自動保存を無効にする。 [...]
30 November 2008 at 4:41 pm
[...] Exper Chaotic Flow » Blog Archive » Disable Revisions and Autosave plugins [...]
1 December 2008 at 1:44 am
[...] so recht die Eingriffe in die Datenbank oder die PHP-Datei wp-config.php zutraut, der kann auf ein Plugin [...]
5 December 2008 at 7:58 am
[...] さっそくそこで紹介されていた、Disable Revision and Autosave pluginsを使うことにしましたが、果たして!? Exper Chaotic Flow » Blog Archive » Disable Revisions and Autosave plugins [...]
10 December 2008 at 11:22 am
[...] 也找到几个插件,不过觉得以上方法最好。另外插件作者在回复中有提到清除已有revision的方法。 You can can delete all the old revisions this way 1: Log into your phpMyAdmin panel 2: Backup the whole DB 3: Click on the SQL -> SQL query 4: Copy, paste and run the code in “Run SQL query” DELETE a,b,c FROM wp_posts a LEFT JOIN wp_term_relationships b ON (a.ID=b.object_id) LEFT JOIN wp_postmeta c ON (a.ID=c.post_id) WHERE a.post_type=’revision’; [...]
12 December 2008 at 3:36 pm
[...] Disable Revisions and Autosave - 这是从WordPress2.6版就开始使用的插件, 看名字就知道是干啥的了, 好像前面也介绍过. [...]
12 December 2008 at 7:05 pm
[...] Zwischenspeicherung durch. Das gibt Datenmüll ohne Ende. Auch das läßt sich bequem über diese Plugins abstellen. Ich verwende die Variante für die Revision & Zwischenspeicherung und habe keine [...]
15 December 2008 at 9:24 pm
Hi, thanks for the plugin. I am too lazy to do such thing myself (also, I’m no programmer). However, I must notice that there is a missing ” ?> ” at the end of ” disable-revisions.php ” I don’t know if it has been fixed in the repository, but here the download hasn’t.
Cheerio!
16 December 2008 at 5:59 pm
[...] 通过博友http://www.teikinka.com/disable-revisions-autosave.html这篇日志,飞龙找到,禁用WordPress的PostRevisions的插件了。插件名称就叫做:DisableRevisionsandAutosaveplugins,下载地址在:http://exper.3drecursions.com/2008/07/25/disable-revisions-and-autosave-plugin/。看来外国人也挺讨厌这个WordPress的PostRevisions功能的。 [...]
17 December 2008 at 7:59 pm
Thanks a lot Quoth!
Sorry for the setback; I’ve uploaded the wrong version. Updated now.
18 December 2008 at 5:38 pm
You are a life-saver, buddy. I actually had my blogs disabled because the mySQL queries were so slow because there were so many autosaves/revision that my 200 post blog have 1900+ posts in the database, os every multi-word query took ages. After about 24 hours I figured out I needed to get rid of the autosave/revision function and your pugin is a life-saver. Thanks, man Much appreciated.
18 December 2008 at 6:56 pm
[...] Uses this plugin to disable revisions and autosaves. There was no reason for my database to have 5 times the number [...]
21 December 2008 at 11:02 am
Thanks for the plugin it works great!
27 December 2008 at 3:02 am
Hi, thank you for sharing this plug in. It’s working!
27 December 2008 at 7:57 am
Why doesn’t it work with my WP 2.7?!
27 December 2008 at 10:05 am
[...] Disable Revisions and Autosave plugins [...]
28 December 2008 at 10:43 am
@Ai.Freedom: I really don’t know; It works perfectly on my WP 2.7.
What one are you using?