• Resolved 61pixels

    (@61pixels)


    Just updated to 0.9.0.8 and noticed when editing “some” pages, the layout is all broken. For example the “revisions” and “yoast SEO” panels are now full screen and covering everything on the backend. Other pages editing don’t have this problem.

    Also some Dynamic preview blocks work just fine, others are empty and don’t allow editing. Reverting back to 0.9.0.7 fixes both of these issues for me.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    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.

    Thread Starter 61pixels

    (@61pixels)

    That worked! Fixed both the weird Revisions box error as well as the dynamic previews

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Just a heads up to let you know the latest ACF Extended 0.9.0.9 update fixed this issue.

    Please update your plugin, and also make sure to remove the previous hotfix code I shared from your theme’s functions.php file.

    Have a nice day!

    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.