diff --git a/src/engine/ICE/components/options/policy.php b/src/engine/ICE/components/options/policy.php index 4f8a9e3d..e09e8b65 100755 --- a/src/engine/ICE/components/options/policy.php +++ b/src/engine/ICE/components/options/policy.php @@ -116,5 +116,5 @@ function ice_register_option( $args, $defaults = array() ) */ function ice_rename_options( $list ) { - ICE_Policy::options()->registry()->rename_theme_mods( $list ); + return ICE_Policy::options()->registry()->rename_theme_mods( $list ); } \ No newline at end of file diff --git a/src/engine/ICE/utils/mod.php b/src/engine/ICE/utils/mod.php index 8f8f62c0..16230c04 100644 --- a/src/engine/ICE/utils/mod.php +++ b/src/engine/ICE/utils/mod.php @@ -105,7 +105,7 @@ public function refresh( $force = false ) /** * Saves all modifications to database. * - * @return boolean + * @return true */ public function save() { @@ -115,12 +115,10 @@ public function save() set_theme_mod( $this->name, $this->mods ); // no longer stale $this->stale = false; - // success - return true; } - // no save occurred - return false; + // always return true + return true; } /** diff --git a/src/engine/ICE/utils/upgrade.php b/src/engine/ICE/utils/upgrade.php index d38b6562..4e89506f 100644 --- a/src/engine/ICE/utils/upgrade.php +++ b/src/engine/ICE/utils/upgrade.php @@ -52,6 +52,16 @@ final public function __construct( $mod_key, $default_version = '1.0' ) } } + /** + * Return currently stored version. + * + * @return string + */ + final public function get_version() + { + return $this->version; + } + /** * Returns true if comparison of saved version to given version using given operator is successful. * @@ -168,7 +178,7 @@ public function run() */ private function import_options() { - ice_rename_options( array( + return ice_rename_options( array( // core options 'infinity-core-options.text-color' => 'core.text-color', 'infinity-core-options.link-color' => 'core.link-color',