WordPress Hacks

Turn Off Autosave
Wordpress is one of the best blogging applications out there. You can even use it as a CMS (Content Management System). Like many other softwares, it has one feature which is totally misguided. That’s the autosave feature, what a moronic idea!

Imagine making a mess of your post and realizing that your post has been autosaved when what you actually wanted to do was abort and start again. Too late, autosaved has just wiped out your original.


The fix will vary from version to version, but essentially find yourself a good search utility like Search and Replace from Funduc and look for this:

wp_enqueue_script('autosave');

You can comment it out or delete it. It usually lurks in the following files:
wp-admin/post.php
wp-admin/post-new.php
wp-admin/page-new.php
wp-admin/page.php

You can also modify wp-config.php and set the interval way higher than the 60 second default.


Turn Off Revisions
At the same time, modify wp-config.php to turn off the nuisance of revisisions – set them to false.


Turn Off Plugin Updates
Another feature of WP which is well-intentioned but annoying is the automatic update feature for new plugins. This is close to big brother dialing the mother ship. You can defeat this by looking for and removing this line:

require_once(ABSPATH . 'wp-admin/includes/update.php');

It will likely be found in:
wp-adminincludesadmin.php

Another line to remove:

require (ABSPATH . WPINC . '/update.php');

which is likely to be in:
wordpresswp-settings.php

Finally it might be a good idea to remove your blog’s url too. No more snooping allowed.

1)wordpresswp-includesupdate.php: look for get_bloginfo(‘url’) and change to get_bloginfo(‘ ‘)
2)wordpresswp-adminincludesupdate.php: same as above