Advanced Custom Fields: Font Awesome Field - Version 1.7.2

Version Description

  • Bugfix PHP Notice when trying to access property of 'null' value
Download this release

Release Info

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

Code changes from version 1.7.1 to 1.7.2

acf-font-awesome-v4.php CHANGED
@@ -214,8 +214,8 @@ class acf_field_font_awesome extends acf_field
214
  */
215
 
216
  function create_field( $field )
217
- {
218
- if( 'object' == $field['save_format'] )
219
  $field['value'] = array( $field['value']->class );
220
 
221
  // value must be array
214
  */
215
 
216
  function create_field( $field )
217
+ {
218
+ if( 'object' == $field['save_format'] && 'null' !== $field['value'] )
219
  $field['value'] = array( $field['value']->class );
220
 
221
  // value must be array
acf-font-awesome-v5.php CHANGED
@@ -121,8 +121,8 @@ class acf_field_font_awesome extends acf_field {
121
  * @return n/a
122
  */
123
 
124
- function render_field_settings( $field ) {
125
-
126
  /*
127
  * acf_render_field_setting
128
  *
@@ -202,9 +202,9 @@ class acf_field_font_awesome extends acf_field {
202
  * @return n/a
203
  */
204
 
205
- function render_field( $field ) {
206
-
207
- if( 'object' == $field['save_format'] )
208
  $field['value'] = array( $field['value']->class );
209
 
210
  // value must be array
121
  * @return n/a
122
  */
123
 
124
+ function render_field_settings( $field )
125
+ {
126
  /*
127
  * acf_render_field_setting
128
  *
202
  * @return n/a
203
  */
204
 
205
+ function render_field( $field )
206
+ {
207
+ if( 'object' == $field['save_format'] && 'null' !== $field['value'] )
208
  $field['value'] = array( $field['value']->class );
209
 
210
  // value must be array
acf-font-awesome.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Advanced Custom Fields: Font Awesome
4
  Description: Add a Font Awesome field type to Advanced Custom Fields
5
- Version: 1.7.1
6
  Author: Matt Keys
7
  Author URI: http://mattkeys.me/
8
  License: GPLv2 or later
2
  /*
3
  Plugin Name: Advanced Custom Fields: Font Awesome
4
  Description: Add a Font Awesome field type to Advanced Custom Fields
5
+ Version: 1.7.2
6
  Author: Matt Keys
7
  Author URI: http://mattkeys.me/
8
  License: GPLv2 or later
js/edit_input.js CHANGED
File without changes
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: mattkeys
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UTNU7YJG2KVPJ
4
  Tags: Advanced Custom Fields, ACF, Font Awesome, FontAwesome
5
  Requires at least: 3.5
6
- Tested up to: 4.0
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -40,6 +40,9 @@ This ACF field type is compatible with:
40
 
41
  == Changelog ==
42
 
 
 
 
43
  = 1.7.1 =
44
  * Updated Better Font Awesome Library for better compatibility with Better Font Awesome plugin
45
  * Changed ACF 4/5 detection method for better integration with Better Font Awesome plugin
@@ -96,6 +99,9 @@ This ACF field type is compatible with:
96
 
97
  == Upgrade Notice ==
98
 
 
 
 
99
  = 1.7.1 =
100
  Updated Better Font Awesome Library for better compatibility with Better Font Awesome plugin. Minor JS bug fix in admin area
101
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UTNU7YJG2KVPJ
4
  Tags: Advanced Custom Fields, ACF, Font Awesome, FontAwesome
5
  Requires at least: 3.5
6
+ Tested up to: 4.4
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
40
 
41
  == Changelog ==
42
 
43
+ = 1.7.2 =
44
+ * Bugfix PHP Notice when trying to access property of 'null' value
45
+
46
  = 1.7.1 =
47
  * Updated Better Font Awesome Library for better compatibility with Better Font Awesome plugin
48
  * Changed ACF 4/5 detection method for better integration with Better Font Awesome plugin
99
 
100
  == Upgrade Notice ==
101
 
102
+ = 1.7.2 =
103
+ Bugfix PHP Notice when trying to access property of 'null' value
104
+
105
  = 1.7.1 =
106
  Updated Better Font Awesome Library for better compatibility with Better Font Awesome plugin. Minor JS bug fix in admin area
107