<?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>benjismith.net &#187; wordpress</title>
	<atom:link href="http://benjismith.net/index.php/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://benjismith.net</link>
	<description>Benji Smith, Software Research</description>
	<lastBuildDate>Wed, 01 Jun 2011 17:08:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WordPress Plugin: Versioning</title>
		<link>http://benjismith.net/index.php/2006/08/04/wordpress-plugin-versioning/</link>
		<comments>http://benjismith.net/index.php/2006/08/04/wordpress-plugin-versioning/#comments</comments>
		<pubDate>Fri, 04 Aug 2006 08:29:34 +0000</pubDate>
		<dc:creator>benji</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://benjismith.net/index.php/2006/08/04/wordpress-plugin-versioning/</guid>
		<description><![CDATA[After losing a significant amount of writing work earlier tonight due to some WordPress bug (or maybe user error; who knows), I decided that all of my posts should be versioned.
I save my work constantly, so it&#8217;s dumb that accidentally saving a truncated post should wipe out hours and hours of work.
So I searched around [...]]]></description>
			<content:encoded><![CDATA[<p>After losing a significant amount of writing work <a href="http://benjismith.net/index.php/2006/08/03/disheartening-wordpress-bug/">earlier tonight</a> due to some WordPress bug (or maybe user error; who knows), I decided that all of my posts should be versioned.</p>
<p>I save my work constantly, so it&#8217;s dumb that accidentally saving a truncated post should wipe out hours and hours of work.</p>
<p>So I searched around on the internet and found the <a href="http://www.watershedstudio.com/portfolio/software/wp-versioning.html">WordPress Versioning Plugin</a>, which I downloaded and immediately installed.</p>
<p>Unfortunately, the plugin didn&#8217;t work.</p>
<p>So I&#8217;ve been tinkering around with it for a few hours, and I&#8217;ve fixed it.</p>
<p><span id="more-69"></span>You can download the new plugin module here:</p>
<p><a href="http://benjismith.net/files/wp-versioning.tar.gz">http://benjismith.net/files/wp-versioning.tar.gz</a></p>
<p>Here are the changes I made:</p>
<p><strong>Bugs Fixed:</strong></p>
<ul>
<li>The PHP was coded with the assumption that REGISTER_GLOBALS would be set to TRUE. That&#8217;s a dumb assumption, so I changed the code to use the $HTTP_GET_VARS global array.</li>
<li>For any querystring parameters, I&#8217;m now using mysql_escape_chars() to prevent SQL injection attacks.</li>
</ul>
<p><strong>Better UI:</strong></p>
<ul>
<li>More aesthetically-pleasing table layout.</li>
<li>Betterly-named column headers</li>
<li>Snapshots are now displayed in a format that preserves both the html markup and the newlines in the post, making it a little easier to choose which snapshot to rollback to.</li>
</ul>
<p><strong>New Features:</strong></p>
<ul>
<li>It&#8217;s now possible to delete snapshots, to keep from clogging up the database with a bunch of unnecessary snapshots</li>
</ul>
<p>I&#8217;ve decided to call the new version 19.2 (which, you&#8217;ve got to admit, is a significant upgrade from the original author&#8217;s 1.0 Beta version).</p>
<p>At some point, I may implement a better visual diff, so that sequential snapshots are easier to differentiate. For now, I&#8217;m not too concerned. I&#8217;m just happy that my posts will no longer suffer from mistaken deletions, either due to bugs in the WordPress software itself or because of one of those pesky &#8216;Problem Between Chair And Keyboard&#8217; bugs.</p>
<p>If you have any questions, let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://benjismith.net/index.php/2006/08/04/wordpress-plugin-versioning/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Disheartening WordPress Bug?</title>
		<link>http://benjismith.net/index.php/2006/08/03/disheartening-wordpress-bug/</link>
		<comments>http://benjismith.net/index.php/2006/08/03/disheartening-wordpress-bug/#comments</comments>
		<pubDate>Fri, 04 Aug 2006 05:49:59 +0000</pubDate>
		<dc:creator>benji</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I don&#8217;t know if this has happened to anyone else&#8230;
I just finished writing a blog post that I&#8217;ve been working on for the last three days (total time writing and editing: about 3.5 hours).
As an afterthought, I decided to paste a funny image into the body of the post, so I uploaded the image using [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know if this has happened to anyone else&#8230;</p>
<p>I just finished writing a blog post that I&#8217;ve been working on for the last three days (total time writing and editing: about 3.5 hours).</p>
<p>As an afterthought, I decided to paste a funny image into the body of the post, so I uploaded the image using the controls on the &#8216;post.php&#8217; page. After clicking on the thumbnail and choosing &#8216;Send to Editor&#8217;, the image was pasted into the text, and I published the article.</p>
<p>I was redirected to the publicly-viewable page containing the new article, only to discover that the last 75% of the text in my message had completely disappeared.</p>
<p>Ugh.</p>
<p>I tried clicking the BACK button in FireFox to retrieve any previous version of my post, but despite FireFox&#8217;s current memory consumption (236,340 KB of RAM, ostensibly used for caching of pages in the <em><strong>HISTORY</strong></em>), all of the historic versions of my post had been replaced with the new truncated version.</p>
<p>Shit.</p>
<p>Now there&#8217;s nothing left for me to do but re-write.</p>
<p>Maybe I&#8217;ll get to it tomorrow. Maybe not.</p>
<p>In the mean time, I think I&#8217;ll install the <a href="http://watershedstudio.com/portfolio/software/wp-versioning.html">WordPress Versioning Plugin</a>, so that in the future, when this inevitably happens again, I can just perform a rollback.</p>
]]></content:encoded>
			<wfw:commentRss>http://benjismith.net/index.php/2006/08/03/disheartening-wordpress-bug/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

