diff --git a/inc/class-config.php b/inc/class-config.php index ae0d116..26c0288 100644 --- a/inc/class-config.php +++ b/inc/class-config.php @@ -153,13 +153,9 @@ public function save() { WP_CLI::log( WP_CLI::colorize( 'Creating %c' . $this->project_file . '%n' ) ); } - $config_save = $this->config; - - if ( ! $this->default ) { - $this->get_live_config(); - $this->resolve_plugin_versions(); - $config_save = $this->live_config; - } + $this->get_live_config(); + $this->resolve_plugin_versions(); + $config_save = $this->live_config; $fp = fopen( $this->project_file, 'w' ); fwrite( $fp, json_encode( $config_save, JSON_PRETTY_PRINT ) );