Last active
January 2, 2016 18:29
-
-
Save jmsmrgn/8343563 to your computer and use it in GitHub Desktop.
Tell wp-config.php to use wp-config-local.php if available
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
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