• Resolved dw4y

    (@dway)


    Hello @takayukister and thx for your plugin.

    I think I’ve spotted a regression in CF7 5.9.4 version : it’s no more compatible with WP 6.4.

    I’ve tested CF7 5.9.3 + WP 6.4 = works fine. But CF7 5.9.4 throws an error :

    Warning: foreach () argument must be of type array|object, string given in /www/wp-include/script-loader.php on line 2641

    Looking at this line, and into the object $block_type I can see the property editor_script_handles.
    Here are my tests and the value of editor_script_handles :

    ? WP 6.4 + CF7 5.9.3 (works fine) :
    Array
    (
    [0] => contact-form-7-block-editor
    )

    ? WP 6.4 + CF7 5.9.4 (don’t work, it’s a string not an array) :
    contact-form-7-block-editor

    WP 6.5 + CF7 5.9.3 and 5.9.4 (works fine) :
    Array
    (
    [0] => contact-form-7-contact-form-selector-editor-script
    )

    I’ve a website being redesigned and stuck in WP 6.4 for months, so I’ve encountered this bug.

    Is this because of a new way to register editor scripts handles from the plugin ?

    Thx !

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CF7 5.9.4 breaks compatibility with WP 6.4.x’ is closed to new replies.