Archive for March 16th, 2009

Emmy Went Home Today

Monday, March 16th, 2009

Mom and I took   [Emmy]   to the train for her return trip to Pittsburgh. She was here ten days and   she really lights up the house   with her laughter and bright spirit. I’ll definitely miss drinking green tea and watching Dr. Phil and The Young and the Restless with her. She has the cutest smile and the purest heart, and it’ll be quiet here now that she’s gone. The only positive part about her leaving is that maybe I’ll get more work done without her to distract me. But it won’t be long before I welcome her distraction once more. She’s a gem and   I’m already looking forward to her next visit in April.

Tom Hesley

Related Posts

Site Status: Turning off Post Revision Tracking

Monday, March 16th, 2009

I discovered that WordPress was saving every revision of every post. So I turned off this feature by adding the following lines of code to the wp-config.php file for each of my blogs:

// Disable post revisions.
define(’WP_POST_REVISIONS’, false);

I also changed line 495 in the wp-settings.php file from

$default_constants = array( ‘WP_POST_REVISIONS’ => true );

to

$default_constants = array( ‘WP_POST_REVISIONS’ => false );

Then I deleted all the revisions that had been saved to this point from each blog database by executing the following SQL statement:

DELETE FROM wp_posts WHERE post_type = ‘revision’;

I then logged out and back into each site’s admin id and verified that the revisions saved thus far no longer appear on the Edit Post screen. The deletion apparently worked.

That’s all.

Tom Hesley