This repository was archived by the owner on Jun 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ Add the svg icons you want to be available in your theme to an acf folder inside
1515## Compatibility
1616
1717This ACF field type is compatible with:
18+
19+ [ x] ACF 6
1820[ x] ACF 5
1921
2022## Screenshots
@@ -87,6 +89,7 @@ add_filter('acf_icon_url',
8789
8890## Changelog
8991
92+ * 1.9.1 - ACF 6 compatibility fix. Thanks to [ idflood] ( https://github.com/houke/acf-icon-picker/pull/30 )
9093* 1.9.0 - Fix issue with Gutenberg preview not updating when removing. Thanks to [ cherbst] ( https://github.com/houke/acf-icon-picker/pull/23 )
9194* 1.8.0 - Fix issue with Gutenberg not saving icon. Thanks to [ tlewap] ( https://github.com/houke/acf-icon-picker/pull/17 )
9295* 1.7.0 - 2 new filters for more control over icon path. Thanks to [ benjibee] ( https://github.com/houke/acf-icon-picker/pull/11 )
Original file line number Diff line number Diff line change 33Plugin Name: Advanced Custom Fields: Icon Picker
44Plugin URI: https://github.com/houke/acf-icon-picker
55Description: Allows you to pick an icon from a predefined list
6- Version: 1.9.0
6+ Version: 1.9.1
77Author: Houke de Kwant
88Author URI: ttps://github.com/houke/
99License: GPLv2 or later
@@ -21,7 +21,7 @@ class acf_plugin_icon_picker {
2121 function __construct () {
2222
2323 $ this ->settings = array (
24- 'version ' => '1.9.0 ' ,
24+ 'version ' => '1.9.1 ' ,
2525 'url ' => plugin_dir_url ( __FILE__ ),
2626 'path ' => plugin_dir_path ( __FILE__ )
2727 );
Original file line number Diff line number Diff line change 1717 jQuery ( '.acf-icon-picker__popup-holder' ) . trigger ( 'close' ) ;
1818 jQuery ( '.acf-icon-picker__popup-holder' ) . remove ( ) ;
1919 jQuery ( '.acf-icon-picker__img input' ) . trigger ( 'change' ) ;
20-
20+
2121 active_item
2222 . parents ( '.acf-icon-picker' )
2323 . find ( '.acf-icon-picker__remove' )
175175 } ) ;
176176
177177 // show the remove button if there is an icon selected
178- if ( $el . find ( 'input' ) . val ( ) . length != 0 ) {
178+ const $input = $el . find ( 'input' )
179+ if ( $input . length && $input . val ( ) . length != 0 ) {
179180 $el
180181 . find ( '.acf-icon-picker__remove' )
181182 . addClass ( 'acf-icon-picker__remove--active' ) ;
You can’t perform that action at this time.
0 commit comments