diff --git a/inc/cache/config-cache.php b/inc/cache/config-cache.php index 417cf7f..8d92bfc 100644 --- a/inc/cache/config-cache.php +++ b/inc/cache/config-cache.php @@ -331,13 +331,13 @@ public static function write_config($config, $create_root_config = false) { $config_file = $config_dir . DIRECTORY_SEPARATOR . $filename . '.php'; - /*if (is_multisite() && !is_network_admin() && breeze_does_inherit_settings()) { + if (is_multisite() && !is_network_admin() && breeze_does_inherit_settings()) { // Site inherits network-level setting, do not create separate configuration file and remove existing configuration file. - if ($wp_filesystem->exists($config_file)) { + if ($create_root_config === false && $wp_filesystem->exists($config_file)) { $wp_filesystem->delete($config_file, true); } return; - }*/ + } $wp_filesystem->mkdir($config_dir);