Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit c88fec2

Browse files
committedAug 10, 2018
Use wp-config-wplib.box.php as starter local config.
1 parent ef4fdea commit c88fec2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎www/wp-config.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@
2323
? preg_replace( '#^www\.(.+)$#', '$1', $hostname )
2424
: $hostname
2525
);
26+
unset( $hostname );
2627

2728
define( 'BOX_LOCAL_CONFIG', '/wp-config-' . BOX_HOST . '.php' );
2829
if ( isset( $_ENV[ 'WPLIB_BOX' ] ) && ! is_file( dirname( __FILE__ ) . BOX_LOCAL_CONFIG ) ) {
29-
file_put_contents( dirname( __FILE__ ) . BOX_LOCAL_CONFIG, "<?php\n#\n# Local configuration for {$hostname}\n#\n" );
30+
$config = file_get_contents( dirname( __FILE__ ) . '/wp-config-wplib.box.php' );
31+
file_put_contents( dirname( __FILE__ ) . BOX_LOCAL_CONFIG, $config );
3032
}
31-
unset( $hostname );
33+
unset( $config );
34+
3235

3336
/**
3437
* Search for a wp-config-{HTTP_HOST}.php in current

0 commit comments

Comments
 (0)
Failed to load comments.