Created
August 11, 2019 09:17
-
-
Save celticwebdesign/8334ace093d770fd75f9e45f6c36112a to your computer and use it in GitHub Desktop.
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
<?php | |
// =================================================== | |
// Load database info and local development parameters | |
// =================================================== | |
if ( file_exists( dirname( __FILE__ ) . '/local-config.php' ) ) { | |
define( 'WP_LOCAL_DEV', true ); | |
include( dirname( __FILE__ ) . '/local-config.php' ); | |
} else { | |
define( 'WP_LOCAL_DEV', false ); | |
define( 'DB_NAME', '%%DB_NAME%%' ); | |
define( 'DB_USER', '%%DB_USER%%' ); | |
define( 'DB_PASSWORD', '%%DB_PASSWORD%%' ); | |
define( 'DB_HOST', '%%DB_HOST%%' ); // Probably 'localhost' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment