Move WP_POST_REVISIONS definition to config.php

This commit is contained in:
Ben Word
2012-05-17 20:21:36 -06:00
parent e1331ab1cf
commit decce5ae55
2 changed files with 3 additions and 4 deletions

View File

@@ -17,6 +17,9 @@ define('SIDEBAR_CLASSES', 'span4');
define('FULLWIDTH_CLASSES', 'span12');
define('GOOGLE_ANALYTICS_ID', '');
// Set the post revisions to 5 unless previously set to avoid DB bloat
if (!defined('WP_POST_REVISIONS')) { define('WP_POST_REVISIONS', 5); }
define('WP_BASE', wp_base_dir());
define('THEME_NAME', next(explode('/themes/', get_template_directory())));
define('RELATIVE_PLUGIN_PATH', str_replace(site_url() . '/', '', plugins_url()));