diff --git a/CHANGELOG.md b/CHANGELOG.md index 4219c35..0f6c9b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. ## Changelog +### v4.0.1 - 2022-04-22 + +- Fix: wrong output on ACF field + ### v4.0.0 - 2022-04-21 - New: Mass upgrade with VueJS and a brand-new layout. diff --git a/includes/fields/acf-field-icomoon.php b/includes/fields/acf-field-icomoon.php index e06e393..c31ec3c 100644 --- a/includes/fields/acf-field-icomoon.php +++ b/includes/fields/acf-field-icomoon.php @@ -206,7 +206,7 @@ function format_value($value, $post_id, $field){ $icon = array(); foreach($choices as $object){ - if(viivue_array_key_exists('name', $object) === $value){ + if(viivue_array_key_exists('icon_class', $object) === $value){ $icon = $object; break; }