0.9.0.8 update causing various backend issues

[ad_1]

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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer