We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b7cb42 commit 2f8bbd3Copy full SHA for 2f8bbd3
src/Config_Command.php
@@ -202,7 +202,7 @@ public function create( $_, $assoc_args ) {
202
if ( ! Utils\get_flag_value( $assoc_args, 'force' ) ) {
203
if ( isset( $assoc_args['config-file'] ) && file_exists( $assoc_args['config-file'] ) ) {
204
$this->config_file_already_exist_error( basename( $assoc_args['config-file'] ) );
205
- } elseif ( ! isset( $assoc_args['config-file'] ) && file_exists( ABSPATH . 'wp-config.php' ) ) {
+ } elseif ( ! isset( $assoc_args['config-file'] ) && file_exists( rtrim( ABSPATH, '/\\' ) . '/wp-config.php' ) ) {
206
$this->config_file_already_exist_error( 'wp-config.php' );
207
}
208
0 commit comments