diff --git a/CHANGELOG.md b/CHANGELOG.md index a919868..e819c11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. ## Changelog +### v4.0.7 - 2022-09-07 + +- Fixed: Fix conflict class names. +- Fixed: Remove PHP warning notices. + ### v4.0.6 - 2022-08-25 - Fixed: Fix issue return wrong SVG path. diff --git a/acf-icomoon.php b/acf-icomoon.php index 3898af0..0952598 100644 --- a/acf-icomoon.php +++ b/acf-icomoon.php @@ -3,7 +3,7 @@ * Plugin Name: Support For Icomoon with Advanced Custom Fields * Plugin URI: https://wordpress.org/plugins/acf-icomoon/ * Description: 🔩 Add a field to select icons from a selection.json file generated by IcoMoon - * Version: 4.0.6 + * Version: 4.0.7 * Requires at least: 5.2 * Requires PHP: 7.2 * Author: ViiVue diff --git a/changelog.txt b/changelog.txt index d6c445e..d922c30 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,11 @@ == Changelog == += 4.0.7 = +*Release Date - 07 September 2022* + +- Fixed: Fix conflict class names. +- Fixed: Remove PHP warning notices. + = 4.0.6 = *Release Date - 25 August 2022* diff --git a/includes/fields/acf-field-icomoon.php b/includes/fields/acf-field-icomoon.php index 08ef1aa..02449ca 100644 --- a/includes/fields/acf-field-icomoon.php +++ b/includes/fields/acf-field-icomoon.php @@ -146,7 +146,8 @@ function viivue_get_icomoon_json($json_path = ''): array{ if($icon_paths){ foreach($icon_paths as $index => $path){ // svg - $fill = viivue_array_key_exists('fill', $icon_attrs[$index]); + $icon_attr = viivue_array_key_exists($index, $icon_attrs, array()); + $fill = viivue_array_key_exists('fill', $icon_attr); $icon_svg_inner .= ''; // html diff --git a/readme.txt b/readme.txt index 7d8657d..64e85db 100644 --- a/readme.txt +++ b/readme.txt @@ -2,9 +2,9 @@ Contributors: viivue, daomapsieucap, phucbm Tags: Advanced Custom Fields, ACF, Icomoon Requires at least: 4.7 -Tested up to: 6.0.1 -Requires PHP: 7.0 -Stable tag: 4.0.6 +Tested up to: 6.0.2 +Requires PHP: 7.2 +Stable tag: 4.0.7 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -30,7 +30,8 @@ This ACF field type is compatible with: == Changelog == -= 4.0.6 = -*Release Date - 25 August 2022* += 4.0.7 = +*Release Date - 07 September 2022* -- Fixed: Fix issue return wrong SVG path. \ No newline at end of file +- Fixed: Fix conflict class names. +- Fixed: Remove PHP warning notices. \ No newline at end of file