Time For Change

Image courtesy of Stuart Miles at FreeDigitalPhotos.net

Image courtesy of Stuart Miles at FreeDigitalPhotos.net


Full Moon Watch

Amateur photography skills coming up…

DSC_0080

DSC_0084


Can’t Disable/Reduce WordPress Revisions [SOLVED]

You need to add this code into wp-config.php:
// change numerical value to *false* to disable.
define('WP_POST_REVISIONS', false);

To limit the revisions saved on the database change the value ‘false’ with a numerical value, i.e:

// change numerical value to *false* to disable, vice versa.
define('WP_POST_REVISIONS',2);

After:
// ** MySQL settings ** //
define('DB_NAME', 'wp1'); // The name of the database
define('DB_USER', 'username'); // Your MySQL username
define('DB_PASSWORD', 'password123'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

Before:
define('ABSPATH', dirname(__FILE__).'/');
require_once(ABSPATH.'wp-settings.php');
?>

The code within wp-config.php will more or less look like this:

// ** MySQL settings ** //
define('DB_NAME', 'wp1'); // The name of the database
define('DB_USER', 'username'); // Your MySQL username
define('DB_PASSWORD', 'password123'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

define('WP_POST_REVISIONS', false);

define('ABSPATH', dirname(__FILE__).'/');
require_once(ABSPATH.'wp-settings.php');
?>


Credits ∼ © Annie Li 2014 ∼ Powered by WordPress