/** * Parse the option group and import it * * @param string $name * @param array $opt_group * @param array $options */ private function parse_option_group($name, $opt_group, $options) { if ($name === 'YMBESEO_taxonomy_meta') { $opt_group = json_decode(urldecode($opt_group['YMBESEO_taxonomy_meta']), true); } // Make sure that the imported options are cleaned/converted on import. $option_instance = YMBESEO_Options::get_option_instance($name); if (is_object($option_instance) && method_exists($option_instance, 'import')) { $option_instance->import($opt_group, $this->old_YMBESEO_version, $options); } elseif (WP_DEBUG === true || defined('YMBESEO_DEBUG') && YMBESEO_DEBUG === true) { $this->msg = sprintf(__('Setting "%s" is no longer used and has been discarded.', 'ymbeseo'), $name); } }