Advanced Custom Fields: Font Awesome Field - Version 2.0.3

Version Description

  • Fixed bug where a field set to return 'Icon Object' would instead return an array
Download this release

Release Info

Developer mattkeys
Plugin Icon 128x128 Advanced Custom Fields: Font Awesome Field
Version 2.0.3
Comparing to
See all releases

Code changes from version 2.0.2 to 2.0.3

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.2
8
  Author: mattkeys
9
  Author URI: http://mattkeys.me/
10
  License: GPLv2 or later
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.3
8
  Author: mattkeys
9
  Author URI: http://mattkeys.me/
10
  License: GPLv2 or later
fields/acf-font-awesome-v4.php CHANGED
@@ -268,7 +268,7 @@ if ( ! class_exists( 'acf_field_font_awesome' ) ) :
268
  break;
269
 
270
  case 'object':
271
- $value = $this->icons['details'][ $value ];
272
  break;
273
  }
274
 
268
  break;
269
 
270
  case 'object':
271
+ $value = ( object ) $this->icons['details'][ $value ];
272
  break;
273
  }
274
 
fields/acf-font-awesome-v5.php CHANGED
@@ -194,7 +194,7 @@ if ( ! class_exists( 'acf_field_font_awesome' ) ) :
194
  break;
195
 
196
  case 'object':
197
- $value = $this->icons['details'][ $value ];
198
  break;
199
  }
200
  }
194
  break;
195
 
196
  case 'object':
197
+ $value = ( object ) $this->icons['details'][ $value ];
198
  break;
199
  }
200
  }
readme.txt CHANGED
@@ -50,6 +50,9 @@ This ACF field type is compatible with:
50
 
51
  == Changelog ==
52
 
 
 
 
53
  = 2.0.2 =
54
  * Fixed bug effecting Select fields when used along with a Font Awesome field in a repeater (ACF v5)
55
 
@@ -129,6 +132,9 @@ This ACF field type is compatible with:
129
 
130
  == Upgrade Notice ==
131
 
 
 
 
132
  = 2.0.2 =
133
  * Fixed bug effecting Select fields when used along with a Font Awesome field in a repeater (ACF v5)
134
 
50
 
51
  == Changelog ==
52
 
53
+ = 2.0.3 =
54
+ * Fixed bug where a field set to return 'Icon Object' would instead return an array
55
+
56
  = 2.0.2 =
57
  * Fixed bug effecting Select fields when used along with a Font Awesome field in a repeater (ACF v5)
58
 
132
 
133
  == Upgrade Notice ==
134
 
135
+ = 2.0.3 =
136
+ * Fixed bug where a field set to return 'Icon Object' would instead return an array
137
+
138
  = 2.0.2 =
139
  * Fixed bug effecting Select fields when used along with a Font Awesome field in a repeater (ACF v5)
140