Hello,
Thanks for the feedback!
The latest 0.9.0.8 version added some changes in order to make the get_row_index()
work with the Flexible Content Dynamic Render in the admin preview.
After some extensive checks, it looks like these changes broke the usage of get_row()
and get_row_layout()
in the admin preview. If you’re using these functions in Flexible Content layouts, you might run into problems.
Here is a quick fix you can add to your theme’s functions.php
file in order to fix this issue.
// ACFE 0.9.0.8: Fix get_row() & get_row_layout() usage in Flexible Content preview
add_filter('acfe/flexible/render/template', 'acfe_fix_flexible_content_preview_get_row', 0, 4);
function acfe_fix_flexible_content_preview_get_row($file, $field, $layout, $is_preview){
if($is_preview){
acf_update_loop('active', 'i', 0);
}
// return
return $file;
}
Note this will revert the changes of the 0.9.0.8 update, and make get_row_index()
always return 1
in the WP Admin (just like in the previous version).
I’m preparing an update which will fix both functions usage.
Please let me know if that fixed the issue.
Thanks!
Regards.
That worked! Fixed both the weird Revisions box error as well as the dynamic previews