Moving WP_LOCAL_DEV definition to local-config.php so we don't have to publish db passwords.

This commit is contained in:
misund committed 2014-09-22 16:57:33 +02:00
1 parent dca0495c26
commit df09a18bd7
2 files changed
+1 -1

No files matched your search

+1
View File
@@ -6,6 +6,7 @@ In it, you *must* include the four main database defines
You may include other settings here that you only want enabled on your local development checkouts
*/
define( 'WP_LOCAL_DEV', true );
define( 'DB_NAME', 'local_db_name' );
define( 'DB_USER', 'local_db_user' );
define( 'DB_PASSWORD', 'local_db_password' );
-1
View File
@@ -3,7 +3,6 @@
// 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 );