diff --git a/acf.php b/acf.php index 57bb02d..9d2ed11 100644 --- a/acf.php +++ b/acf.php @@ -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__ ), diff --git a/pro/fields/flexible-content.php b/pro/fields/flexible-content.php index cf3491a..a30839a 100644 --- a/pro/fields/flexible-content.php +++ b/pro/fields/flexible-content.php @@ -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; + + } } diff --git a/readme.txt b/readme.txt index f6daec8..b3f1724 100644 --- a/readme.txt +++ b/readme.txt @@ -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