In WordPress 6.3, the enqueue_block_assets was getting called twice causing the function inside to be redeclared.
This PR fixes the issue by moving the script enqueues into the render_callback. The code is also refactored to be a bit more like how Jetpack blocks are structured.
Description
In WordPress 6.3, the
enqueue_block_assets
was getting called twice causing the function inside to be redeclared.This PR fixes the issue by moving the script enqueues into the
render_callback
. The code is also refactored to be a bit more like how Jetpack blocks are structured.Testing Instructions