From a2d86c64f4dd2bb10f52f1cf5c0837da976511fb Mon Sep 17 00:00:00 2001 From: Michael Savchuk Date: Fri, 11 Oct 2019 14:23:25 -0700 Subject: [PATCH] fix(config): remove default check in save --- inc/class-config.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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 ) );