Version Description
- Fixed bug with icon set selections not persisting after savings field groups
- Fixed bug where icon preview was not showing up even when enabled
Download this release
Release Info
Developer | mattkeys |
Plugin | Advanced Custom Fields: Font Awesome Field |
Version | 3.0.0-rc2 |
Comparing to | |
See all releases |
Code changes from version 3.0.0-rc1 to 3.0.0-rc2
- acf-font-awesome.php +2 -2
- fields/acf-font-awesome-v5.php +7 -1
- readme.txt +8 -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: 3.0.0-
|
8 |
Author: mattkeys
|
9 |
Author URI: http://mattkeys.me/
|
10 |
License: GPLv2 or later
|
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
16 |
}
|
17 |
|
18 |
if ( ! defined( 'ACFFA_VERSION' ) ) {
|
19 |
-
define( 'ACFFA_VERSION', '3.0.0-
|
20 |
}
|
21 |
|
22 |
if ( ! defined( 'ACFFA_PUBLIC_PATH' ) ) {
|
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: 3.0.0-rc2
|
8 |
Author: mattkeys
|
9 |
Author URI: http://mattkeys.me/
|
10 |
License: GPLv2 or later
|
16 |
}
|
17 |
|
18 |
if ( ! defined( 'ACFFA_VERSION' ) ) {
|
19 |
+
define( 'ACFFA_VERSION', '3.0.0-rc2' );
|
20 |
}
|
21 |
|
22 |
if ( ! defined( 'ACFFA_PUBLIC_PATH' ) ) {
|
fields/acf-font-awesome-v5.php
CHANGED
@@ -61,7 +61,7 @@ if ( ! class_exists( 'acf_field_font_awesome' ) ) :
|
|
61 |
'instructions' => __( 'Specify which icon set(s) to load', 'acf-font-awesome' ),
|
62 |
'type' => 'checkbox',
|
63 |
'name' => 'icon_sets',
|
64 |
-
'value' => ! empty( $field['icon_sets'] ) ? $field['icon_sets']
|
65 |
);
|
66 |
|
67 |
if ( version_compare( ACFFA_MAJOR_VERSION, 5, '>=' ) ) {
|
@@ -219,6 +219,12 @@ if ( ! class_exists( 'acf_field_font_awesome' ) ) :
|
|
219 |
endif;
|
220 |
endif;
|
221 |
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
acf_render_field( $field );
|
223 |
}
|
224 |
|
61 |
'instructions' => __( 'Specify which icon set(s) to load', 'acf-font-awesome' ),
|
62 |
'type' => 'checkbox',
|
63 |
'name' => 'icon_sets',
|
64 |
+
'value' => ! empty( $field['icon_sets'] ) ? $field['icon_sets'] : 'far'
|
65 |
);
|
66 |
|
67 |
if ( version_compare( ACFFA_MAJOR_VERSION, 5, '>=' ) ) {
|
219 |
endif;
|
220 |
endif;
|
221 |
|
222 |
+
if ( $field['show_preview'] ) :
|
223 |
+
?>
|
224 |
+
<div class="icon_preview"></div>
|
225 |
+
<?php
|
226 |
+
endif;
|
227 |
+
|
228 |
acf_render_field( $field );
|
229 |
}
|
230 |
|
readme.txt
CHANGED
@@ -51,6 +51,10 @@ This ACF field type is compatible with:
|
|
51 |
|
52 |
== Changelog ==
|
53 |
|
|
|
|
|
|
|
|
|
54 |
= 3.0.0-rc1 =
|
55 |
* Added new 'ACFFA_override_major_version' filter
|
56 |
* Fixed logic to auto-select FontAwesome 4.x or 5.x depending on if 4.x was being used in a previous version of this plugin
|
@@ -179,6 +183,10 @@ This ACF field type is compatible with:
|
|
179 |
|
180 |
== Upgrade Notice ==
|
181 |
|
|
|
|
|
|
|
|
|
182 |
= 3.0.0-rc1 =
|
183 |
* Added new 'ACFFA_override_major_version' filter
|
184 |
* Fixed logic to auto-select FontAwesome 4.x or 5.x depending on if 4.x was being used in a previous version of this plugin
|
51 |
|
52 |
== Changelog ==
|
53 |
|
54 |
+
= 3.0.0-rc2 =
|
55 |
+
* Fixed bug with icon set selections not persisting after savings field groups
|
56 |
+
* Fixed bug where icon preview was not showing up even when enabled
|
57 |
+
|
58 |
= 3.0.0-rc1 =
|
59 |
* Added new 'ACFFA_override_major_version' filter
|
60 |
* Fixed logic to auto-select FontAwesome 4.x or 5.x depending on if 4.x was being used in a previous version of this plugin
|
183 |
|
184 |
== Upgrade Notice ==
|
185 |
|
186 |
+
= 3.0.0-rc2 =
|
187 |
+
* Fixed bug with icon set selections not persisting after savings field groups
|
188 |
+
* Fixed bug where icon preview was not showing up even when enabled
|
189 |
+
|
190 |
= 3.0.0-rc1 =
|
191 |
* Added new 'ACFFA_override_major_version' filter
|
192 |
* Fixed logic to auto-select FontAwesome 4.x or 5.x depending on if 4.x was being used in a previous version of this plugin
|