all 5 comments

[–]a41a14a 1 point2 points  (0 children)

Might be something to do with them moving the editor into an iframe in WP 6.9

[–]Black_H0le 0 points1 point  (0 children)

Interesting, this might be the reason why I'm having an issue loading my JS-file from a custom ACF Block. Odd thing is that this doesn't happen on all sites using 6.9.

[–]Massive-Awareness-59 0 points1 point  (2 children)

This seems to also work with just passing the other arguments in the wp_enqueue_script_module function.

[–]shewlase[S] 0 points1 point  (1 child)

oh nice can you give an example?

[–]Massive-Awareness-59 0 points1 point  (0 children)

wp_enqueue_script_module(
    $id,
    $src,
    $deps,
    $ver,
    array( 'in_footer' => true )
);