Advanced Custom Fields - Version 4.1.4

Version Description

  • [Fixed] Page Link: Fixed errors produced by recent changes to post object field - http://support.advancedcustomfields.com/discussion/6044/page-links-hierarchy-broken-and-does-not-order-correctly
Download this release

Release Info

Developer elliotcondon
Plugin Icon 128x128 Advanced Custom Fields
Version 4.1.4
Comparing to
See all releases

Code changes from version 4.1.3 to 4.1.4

Files changed (2) hide show
  1. acf.php +6 -3
  2. readme.txt +3 -0
acf.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Advanced Custom Fields
4
  Plugin URI: http://www.advancedcustomfields.com/
5
  Description: Fully customise WordPress edit screens with powerful fields. Boasting a professional interface and a powerfull API, it’s a must have for any web developer working with WordPress. Field types include: Wysiwyg, text, textarea, image, file, select, checkbox, page link, post object, date picker, color picker, repeater, flexible content, gallery and more!
6
- Version: 4.1.3
7
  Author: Elliot Condon
8
  Author URI: http://www.elliotcondon.com/
9
  License: GPL
@@ -66,7 +66,7 @@ class Acf
66
  $this->settings = array(
67
  'path' => apply_filters('acf/helpers/get_path', __FILE__),
68
  'dir' => apply_filters('acf/helpers/get_dir', __FILE__),
69
- 'version' => '4.1.3',
70
  'upgrade_version' => '3.4.1',
71
  );
72
 
@@ -581,7 +581,10 @@ class Acf
581
  if( is_array($fields) ){ foreach( $fields as $field ){
582
 
583
  // if they didn't select a type, skip this field
584
- if( !$field['type'] || $field['type'] == 'null' ) continue;
 
 
 
585
 
586
 
587
  // set value
3
  Plugin Name: Advanced Custom Fields
4
  Plugin URI: http://www.advancedcustomfields.com/
5
  Description: Fully customise WordPress edit screens with powerful fields. Boasting a professional interface and a powerfull API, it’s a must have for any web developer working with WordPress. Field types include: Wysiwyg, text, textarea, image, file, select, checkbox, page link, post object, date picker, color picker, repeater, flexible content, gallery and more!
6
+ Version: 4.1.4
7
  Author: Elliot Condon
8
  Author URI: http://www.elliotcondon.com/
9
  License: GPL
66
  $this->settings = array(
67
  'path' => apply_filters('acf/helpers/get_path', __FILE__),
68
  'dir' => apply_filters('acf/helpers/get_dir', __FILE__),
69
+ 'version' => '4.1.4',
70
  'upgrade_version' => '3.4.1',
71
  );
72
 
581
  if( is_array($fields) ){ foreach( $fields as $field ){
582
 
583
  // if they didn't select a type, skip this field
584
+ if( !$field || !$field['type'] || $field['type'] == 'null' )
585
+ {
586
+ continue;
587
+ }
588
 
589
 
590
  // set value
readme.txt CHANGED
@@ -101,6 +101,9 @@ http://support.advancedcustomfields.com/
101
 
102
  == Changelog ==
103
 
 
 
 
104
  = 4.1.3 =
105
  * [Fixed] Relationship field: Fix global $post conflict issues - http://support.advancedcustomfields.com/discussion/6022/bug-with-4-1-2-acf-rewrite-global-post
106
 
101
 
102
  == Changelog ==
103
 
104
+ = 4.1.4 =
105
+ * [Fixed] Page Link: Fixed errors produced by recent changes to post object field - http://support.advancedcustomfields.com/discussion/6044/page-links-hierarchy-broken-and-does-not-order-correctly
106
+
107
  = 4.1.3 =
108
  * [Fixed] Relationship field: Fix global $post conflict issues - http://support.advancedcustomfields.com/discussion/6022/bug-with-4-1-2-acf-rewrite-global-post
109