<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Free Technology Tutorials &#187; post revisions</title>
	<atom:link href="http://educhalk.org/blog/tag/post-revisions/feed/" rel="self" type="application/rss+xml" />
	<link>http://educhalk.org/blog</link>
	<description>Technology Made Easy</description>
	<lastBuildDate>Wed, 08 Feb 2012 17:10:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Customize WordPress Post Revisions</title>
		<link>http://educhalk.org/blog/2010/01/customize-wordpress-post-revisions/</link>
		<comments>http://educhalk.org/blog/2010/01/customize-wordpress-post-revisions/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 19:52:14 +0000</pubDate>
		<dc:creator>figaro</dc:creator>
				<category><![CDATA[WP General]]></category>
		<category><![CDATA[post revisions]]></category>
		<category><![CDATA[WordPress Post]]></category>

		<guid isPermaLink="false">http://educhalk.org/blog/?p=742</guid>
		<description><![CDATA[TweetIn a default install of WordPress, each time you edit a post or page, WordPress will automatically save your previous posts/pages allowing the possibility of reverting to a previous version of that post or page. This is a cool feature, but it can get a little ridiculous when you have dozens of previous versions sitting [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton742" class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Feduchalk.org%2Fblog%2F2010%2F01%2Fcustomize-wordpress-post-revisions%2F&amp;text=Customize%20WordPress%20Post%20Revisions&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Feduchalk.org%2Fblog%2F2010%2F01%2Fcustomize-wordpress-post-revisions%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://educhalk.org/blog/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>In a default install of WordPress, each time you edit a post or page, WordPress will automatically save your previous posts/pages allowing the possibility of reverting to a previous version of that post or page. This is a cool feature, but it can get a little ridiculous when you have dozens of previous versions sitting below the post&#8211;and taking up space in your db. As you can see in the following screenshot, with just a couple of edits to this post, I&#8217;ve already racked-up 4 revisions&#8230;by the time I finish editing, I&#8217;ll probably have a dozen or so&#8230;</p>
<p><a href="http://educhalk.org/blog/wp-content/uploads/2010/01/edits.png"><img class="alignnone size-full wp-image-747" title="edits" src="http://educhalk.org/blog/wp-content/uploads/2010/01/edits.png" alt="" width="293" height="197" /></a></p>
<p>Each of those revisions requires a separate record in the db. So, although this is a cool feature, it can significantly add to db bloat.  If you don&#8217;t really care to have all those revisions sitting around, or if you want to limit the number, WordPress does provide an option to change the default behavior allowing you to either disable revisions completely or allowing you to limit the number of revisions saved. To make these changes you do need to edit your wp-config.php file directly&#8230;currently, there is no option for doing this in WP admin.</p>
<p><strong>Disable Post Revisions</strong></p>
<p>To completely disable the revisions feature, add (or if already present) edit the following code to your wp-config.php file. The word (false) disables this feature.</p>
<p><code>define('WP_POST_REVISIONS', false );</code></p>
<p><strong>Specify the Number of Post Revisions</strong></p>
<p>If you want to keep the revisions feature, but limit the number revisions saved, then use the same code as above, but change false to the number of revisions you want to keep. In the example below, WordPress will keep the latest 3 post or page revisions.</p>
<p><code>define('WP_POST_REVISIONS', 3);</code></p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://educhalk.org/blog/2010/01/customize-wordpress-post-revisions/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

