/** * Inner function - Current Cleantalk data * @return mixed[] Array of options */ function ct_get_data() { $data = get_option('cleantalk_data'); if (!is_array($data)) { $data = array(); } return array_merge(ct_def_data(), (array) $data); }
/** * Inner function - Current Cleantalk data * @return mixed[] Array of options */ function ct_get_data($force = false) { global $ct_data; if (!$force && isset($ct_data) && isset($ct_data['js_keys'])) { return $ct_data; } else { $data = get_option('cleantalk_data'); if (!is_array($data)) { $data = array(); } return array_merge(ct_def_data(), (array) $data); } }