Life Saver

Posted on Tue, Dec 16 2014 in Site News

I have a tendency, when writing, of taking many days to complete something. I will start it one day, and come back several times over the next week, usually with lots of time between editing sessions. Even worse, I don't make a habit of saving my changes.

My computer is on a battery backup, so I don't have to worry about unexpected power outages, and my programs generally have some sort of automatic backup anyhow. However, the internet has not yet reached the sophistication of native applications.

Of particular interest in this scenario is Wordpress's insistence on using "nonces" for security. These are codes that must be submitted with every request. They prevent cross-site request forgery and additionally expire after a short period of time. This expiration can prove troublesome for someone like me, who may not save his changes for periods exceeding twenty-four hours.

Whenever you try to save a post with an expired nonce, you get a message that says "Are you sure you want to do this?" Even if you are, your changes are tossed out, and you are sent back to the post editor with the previous save loaded, and no sign of your recent work. As you can imagine, this is a bit frustrating.

Then, a miracle happens. After a couple of seconds, a box appears above the post title. "The backup in your browser is different than the version below. Would you like to load it?" I'm not sure what sort of black magic is involved here, but I appreciate it. Good job, Wordpress.