From df09a18bd7626022c96794b3465a937b0ebc3cea Mon Sep 17 00:00:00 2001 From: misund Date: Mon, 22 Sep 2014 16:56:44 +0200 Subject: [PATCH] Moving WP_LOCAL_DEV definition to local-config.php so we don't have to publish db passwords. --- local-config-sample.php | 1 + wp-config.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/local-config-sample.php b/local-config-sample.php index 616029f..9484041 100644 --- a/local-config-sample.php +++ b/local-config-sample.php @@ -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' ); diff --git a/wp-config.php b/wp-config.php index efaa42d..5fd65f2 100644 --- a/wp-config.php +++ b/wp-config.php @@ -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 );