Skip to content

Instantly share code, notes, and snippets.

@habibmac
Created June 6, 2012 16:24
Show Gist options
  • Select an option

  • Save habibmac/2883042 to your computer and use it in GitHub Desktop.

Select an option

Save habibmac/2883042 to your computer and use it in GitHub Desktop.
WP: Set a maximum number of post revisions to avoid DB bloat.
// 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