Back to WordPress

See Also PHPMySQL

WordPress Skills: Disable Automatic Revision History

1. Disable automatic revision history creation

vi wp-config.php

/** Disable Post Revision History */
define('WP_POST_REVISIONS', false);

2. Delete previous Revision in MySQL

mysql {my database}

-- revision history count
select count(*) from wp_posts WHERE post_type = "revision";
-- info sample
select * from wp_posts WHERE post_type = "revision" limit 2 \G
-- backup database before delete them
delete from wp_posts WHERE post_type = "revision";
mysql> delete from wp_posts WHERE post_type = "revision";
Query OK, 8765 rows affected (0.28 sec)

Refer to http://viralpatel.net/blogs/wordpress-disable-post-revision-history-version-tracking/

MainWiki: WordPress_Skills_Disable_Automatic_Revision_History (last edited 2010-06-20 21:49:22 by twotwo)