This commit is contained in:
Elliot Condon 2016-10-21 11:10:17 +02:00 committed by Remco Tolsma
parent b163226d77
commit 4a8f3a9c0b
3 changed files with 13 additions and 4 deletions

View File

@ -3,7 +3,7 @@
Plugin Name: Advanced Custom Fields PRO
Plugin URI: https://www.advancedcustomfields.com/
Description: Customise WordPress with powerful, professional and intuitive fields
Version: 5.4.7
Version: 5.4.8
Author: Elliot Condon
Author URI: http://www.elliotcondon.com/
Copyright: Elliot Condon
@ -58,7 +58,7 @@ class acf {
// basic
'name' => __('Advanced Custom Fields', 'acf'),
'version' => '5.4.7',
'version' => '5.4.8',
// urls
'basename' => plugin_basename( __FILE__ ),

View File

@ -1406,13 +1406,19 @@ class acf_field_flexible_content extends acf_field {
end( $value );
// vars
// vars (step through array)
$key = key($value);
$value = current($value);
// stop looking if we have found the correct field's value
if( $key === $options['field_key'] ) break;
if( $key === $options['field_key'] ) {
// get row
$value = current($value);
break;
}
}

View File

@ -106,6 +106,9 @@ http://support.advancedcustomfields.com/
== Changelog ==
= 5.4.8 =
* Flexible Content field: Fixed bug in 'layout_title' filter preventing values being loaded correctly
= 5.4.7 =
* Time Picker field: Fixed bug preventing default time from being selected
* Date Picker field: Improved compatibility with unix timestamp values