diff --git a/src/Config_Command.php b/src/Config_Command.php index 8f4a1e336..dfcc13b2e 100644 --- a/src/Config_Command.php +++ b/src/Config_Command.php @@ -181,7 +181,7 @@ public function edit() { if ( $r === false ) { WP_CLI::warning( 'No changes made to wp-config.php.', 'Aborted' ); } else { - file_put_contents( $path, $r ); + file_put_contents( $config_path, $r ); } }