Created
June 6, 2012 16:24
-
-
Save habibmac/2883042 to your computer and use it in GitHub Desktop.
WP: Set a maximum number of post revisions to avoid DB bloat.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Set the post revisions unless the constant was set in wp-config.php | |
| if (!defined('WP_POST_REVISIONS')) define('WP_POST_REVISIONS', 5); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment