Skip to content

Instantly share code, notes, and snippets.

@jmsmrgn
Last active January 2, 2016 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmsmrgn/8343563 to your computer and use it in GitHub Desktop.
Save jmsmrgn/8343563 to your computer and use it in GitHub Desktop.
Tell wp-config.php to use wp-config-local.php if available
if ( file_exists( dirname( __FILE__ ) . '/wp-config-local.php' ) ) {
include( dirname( __FILE__ ) . '/wp-config-local.php' );
} else {
define( 'DB_NAME', '' );
define( 'DB_USER', '' );
define( 'DB_PASSWORD', '' );
define( 'DB_HOST', '127.0.0.1' );
define( 'DB_CHARSET', 'utf8' );
define( 'DB_COLLATE', '' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment