diff --git a/composer.json b/composer.json index 88fb56cf..5d75eaf5 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "jakiboy/vanilleplugin", - "version" : "0.0.7", + "version" : "0.0.8", "type": "library", "description": "Framwork for VanillePlugin", "keywords": ["VanillePlugin","WordPress","WordPress-Plugin","WordPress-Plugin-Framework","jakiboy"], diff --git a/src/VanilleConfig.php b/src/VanilleConfig.php index e7ee097d..b9613f8a 100644 --- a/src/VanilleConfig.php +++ b/src/VanilleConfig.php @@ -41,6 +41,7 @@ public static function getStatic() /** * Set Config Json File + * Allow Parent Config Access * * @param PluginNameSpaceInterface $plugin * @return void @@ -48,15 +49,11 @@ public static function getStatic() protected function initConfig(PluginNameSpaceInterface $plugin) { // Define Internal Namespace - if (!$this->namespace) { - $this->namespace = $plugin->getNameSpace(); - } + $this->namespace = $plugin->getNameSpace(); // Parse VanillePLugin Config file - if (!$this->global) { - $json = new Json("{$this->getRoot()}{$this->path}"); - $this->global = $json->parse(); - } + $json = new Json("{$this->getRoot()}{$this->path}"); + $this->global = $json->parse(); } /**