Skip to content

Commit 2f8bbd3

Browse files
swissspidyCopilot
andauthored
Update src/Config_Command.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8b7cb42 commit 2f8bbd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Config_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function create( $_, $assoc_args ) {
202202
if ( ! Utils\get_flag_value( $assoc_args, 'force' ) ) {
203203
if ( isset( $assoc_args['config-file'] ) && file_exists( $assoc_args['config-file'] ) ) {
204204
$this->config_file_already_exist_error( basename( $assoc_args['config-file'] ) );
205-
} elseif ( ! isset( $assoc_args['config-file'] ) && file_exists( ABSPATH . 'wp-config.php' ) ) {
205+
} elseif ( ! isset( $assoc_args['config-file'] ) && file_exists( rtrim( ABSPATH, '/\\' ) . '/wp-config.php' ) ) {
206206
$this->config_file_already_exist_error( 'wp-config.php' );
207207
}
208208
}

0 commit comments

Comments
 (0)