Support

Account

Home Forums Gutenberg Beta 4 enqueues admin scripts on frontend Reply To: Beta 4 enqueues admin scripts on frontend

  • Elliot replied to the issue on Github:

    This issue is due to a change we made in beta-4 which enqueues out JS in the “enqueue_block_assets” action. This seems to also be run on the front-end and explains why all the WP blocks JS is being enqueued.

    The fix for this issue is to change “enqueue_block_assets” to “enqueue_block_editor_assets” in the “/pro/blocks.php” file on line 383.