wp-config.php code snippets for autosave, post revisions, trash settings

April 28, 2010 | No Comments Yet

These are useful lines of code modifying the default settings on post revisions and autosave intervals, which you can insert in your WordPress site’s wp-config.php file at the root folder.

define('AUTOSAVE_INTERVAL', 160 );

Explanation: Set the length between autosaves to 160 seconds.

define('WP_POST_REVISIONS', false );

Explanation: Disable post revisions completely.

define('WP_POST_REVISIONS', 3);

Explanation: Limit the number of post revisions to 3. (Tip: install Revision Diet so you don’t need to do this manually, and you can also delete excess revisions created beforehand.)

define('EMPTY_TRASH_DAYS', 0 );

Explanation: Disable the Trash functionality completely.

define('EMPTY_TRASH_DAYS', 30 );

Explanation: Set the number of days between the contents of the WordPress Trash bin are completely deleted—posts, pages, comments, etc. This will be done automatically and without confirmation.

Even more snippets can be found at the Codex. Though I hope that in the future, WordPress can integrate these as configurable settings in the admin interface.

Leave a Comment | Tags: , , , , , , ,

8 WordPress “did you know?” features

April 22, 2010 | No Comments Yet

Dave Refern uncovers 8 WordPress features that you may not know about. He refers to the under-the-hood behavior of the publishing software that aren’t so common knowledge unless you’ve been tinkering with it long enough. Find out how you can automatically empty the new Trash feature in a specified number of days, load the hidden advanced options page, show the full WYSIWYG editor, and more.

My personal favorite is the fact that renamed permalinks don’t turn up a 404 not found error but redirect themselves to the new ones. Very considerate, WordPress!

Leave a Comment | Tags: , , , , , ,

WordPress 2.9.2

February 16, 2010 | 1 Comment

WordPress 2.9.2 fixes a bug that lets logged in users see trashed posts created by other authors. It’s not a very urgent update, only to whose who find the Trash bug an inconvenience, but it’s still wise to download the latest version whenever you can. This should give you ample time to backup first.

Haven’t used the new Trash feature before? Here’s a walkthrough on it and here’s how to customize it.

Leave a Comment | Tags: , , , , , ,

WordPress 2.9

December 19, 2009 | No Comments Yet

WordPress 2.9 is finally here! Just days after the first release candidate comes out, the final version of the much-awaited WordPress upgrade has arrived. Looks like Christmas came early this year.

WP 2.9 been dubbed “Carmen” after jazz vocalist Carmen McRae, and is the most feature-packed upgrade to date. The most popular mentioned are: the Trash, a built-in image editor, batch plugin updating and compatibility checking, and easier video embeds using oEmbed. The whole list is detailed in the Trac, of course.

Backup and upgrade now!

Leave a Comment | Tags: , , , , , , ,