Version Description
- Fixed bug where fields marked to 'allow null' in acf v5 did not show the (x) to remove the selected option on the field
Download this release
Release Info
Developer | mattkeys |
Plugin | Advanced Custom Fields: Font Awesome Field |
Version | 2.0.8 |
Comparing to | |
See all releases |
Code changes from version 2.0.7 to 2.0.8
- acf-font-awesome.php +2 -2
- assets/js/input-v5.js +4 -4
- readme.txt +6 -0
acf-font-awesome.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Advanced Custom Fields: Font Awesome
|
5 |
Plugin URI: https://wordpress.org/plugins/advanced-custom-fields-font-awesome/
|
6 |
Description: Adds a new 'Font Awesome Icon' field to the popular Advanced Custom Fields plugin.
|
7 |
-
Version: 2.0.
|
8 |
Author: mattkeys
|
9 |
Author URI: http://mattkeys.me/
|
10 |
License: GPLv2 or later
|
@@ -24,7 +24,7 @@ if ( ! class_exists('acf_plugin_font_awesome') ) :
|
|
24 |
public function __construct()
|
25 |
{
|
26 |
$this->settings = array(
|
27 |
-
'version' => '2.0.
|
28 |
'url' => plugin_dir_url( __FILE__ ),
|
29 |
'path' => plugin_dir_path( __FILE__ )
|
30 |
);
|
4 |
Plugin Name: Advanced Custom Fields: Font Awesome
|
5 |
Plugin URI: https://wordpress.org/plugins/advanced-custom-fields-font-awesome/
|
6 |
Description: Adds a new 'Font Awesome Icon' field to the popular Advanced Custom Fields plugin.
|
7 |
+
Version: 2.0.8
|
8 |
Author: mattkeys
|
9 |
Author URI: http://mattkeys.me/
|
10 |
License: GPLv2 or later
|
24 |
public function __construct()
|
25 |
{
|
26 |
$this->settings = array(
|
27 |
+
'version' => '2.0.8',
|
28 |
'url' => plugin_dir_url( __FILE__ ),
|
29 |
'path' => plugin_dir_path( __FILE__ )
|
30 |
);
|
assets/js/input-v5.js
CHANGED
@@ -5,10 +5,10 @@
|
|
5 |
$( '.icon_preview', parent ).html( '<i class="fa ' + value + '" aria-hidden="true"></i>' );
|
6 |
}
|
7 |
|
8 |
-
function select2_init_args( element ) {
|
9 |
return {
|
10 |
-
key : $(
|
11 |
-
allow_null : $(
|
12 |
ajax : 1,
|
13 |
ajax_action : 'acf/fields/font-awesome/query'
|
14 |
}
|
@@ -20,7 +20,7 @@
|
|
20 |
|
21 |
update_preview( $select.val(), parent );
|
22 |
|
23 |
-
acf.select2.init( $select, select2_init_args( fa_field ), $( fa_field ) );
|
24 |
}
|
25 |
|
26 |
acf.add_action( 'select2_init', function( $input, args, settings, $field ) {
|
5 |
$( '.icon_preview', parent ).html( '<i class="fa ' + value + '" aria-hidden="true"></i>' );
|
6 |
}
|
7 |
|
8 |
+
function select2_init_args( element, parent ) {
|
9 |
return {
|
10 |
+
key : $( parent ).data('key'),
|
11 |
+
allow_null : $( element ).data('allow_null'),
|
12 |
ajax : 1,
|
13 |
ajax_action : 'acf/fields/font-awesome/query'
|
14 |
}
|
20 |
|
21 |
update_preview( $select.val(), parent );
|
22 |
|
23 |
+
acf.select2.init( $select, select2_init_args( fa_field, parent ), $( fa_field ) );
|
24 |
}
|
25 |
|
26 |
acf.add_action( 'select2_init', function( $input, args, settings, $field ) {
|
readme.txt
CHANGED
@@ -51,6 +51,9 @@ This ACF field type is compatible with:
|
|
51 |
|
52 |
== Changelog ==
|
53 |
|
|
|
|
|
|
|
54 |
= 2.0.7 =
|
55 |
* Fixed bug with FA fields assigned to menu items + further refactoring of JS for ACF v5
|
56 |
|
@@ -145,6 +148,9 @@ This ACF field type is compatible with:
|
|
145 |
|
146 |
== Upgrade Notice ==
|
147 |
|
|
|
|
|
|
|
148 |
= 2.0.7 =
|
149 |
* Fixed bug with FA fields assigned to menu items + further refactoring of JS for ACF v5
|
150 |
|
51 |
|
52 |
== Changelog ==
|
53 |
|
54 |
+
= 2.0.8 =
|
55 |
+
* Fixed bug where fields marked to 'allow null' in acf v5 did not show the (x) to remove the selected option on the field
|
56 |
+
|
57 |
= 2.0.7 =
|
58 |
* Fixed bug with FA fields assigned to menu items + further refactoring of JS for ACF v5
|
59 |
|
148 |
|
149 |
== Upgrade Notice ==
|
150 |
|
151 |
+
= 2.0.8 =
|
152 |
+
* Fixed bug where fields marked to 'allow null' in acf v5 did not show the (x) to remove the selected option on the field
|
153 |
+
|
154 |
= 2.0.7 =
|
155 |
* Fixed bug with FA fields assigned to menu items + further refactoring of JS for ACF v5
|
156 |
|