Skip to content

Instantly share code, notes, and snippets.

@GreatPotato
Created November 20, 2013 09:55
Show Gist options
  • Save GreatPotato/7560604 to your computer and use it in GitHub Desktop.
Save GreatPotato/7560604 to your computer and use it in GitHub Desktop.
A marginally better WordPress config file
<?php define('WP_CACHE', true);
define('DB_NAME', 'wordpress');
define('DB_USER', 'root');
define('DB_PASSWORD', 'password');
define('DB_HOST', 'localhost');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
// Generate more keys @ https://api.wordpress.org/secret-key/1.1/
define('AUTH_KEY', '');
define('SECURE_AUTH_KEY', '');
define('LOGGED_IN_KEY', '');
define('NONCE_KEY', '');
$table_prefix = 'wp_';
define('WP_DEBUG', false);
define('WP_HOME', 'http://wordpress.local');
define('WP_SITEURL', 'http://wordpress.local');
define('AUTOSAVE_INTERVAL', 3600);
define('WP_POST_REVISIONS', 5);
define('EMPTY_TRASH_DAYS', 5);
define('WP_MEMORY_LIMIT', '32M');
/*-----
| Do not edit below here
-----*/
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
require_once(ABSPATH . 'wp-settings.php');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment