Permalink
Browse files

Define WP_LOCAL_DEV as false when local-config.php is not present

  • Loading branch information...
1 parent aaa8688 commit d30e7a5da0b2988a8a0332db1d688c33b96eb1b6 @markjaquith committed May 26, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 wp-config.php
View
@@ -3,9 +3,10 @@
// Load database info and local development parameters
// ===================================================
if ( file_exists( dirname( __FILE__ ) . '/local-config.php' ) ) {
- include( 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', 'database_name_here' );
define( 'DB_USER', 'username_here' );
define( 'DB_PASSWORD', 'password_here' );

0 comments on commit d30e7a5

Please sign in to comment.