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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
🤔 Curious about the ACF user experience? So are we! Help guide the evolution of ACF by taking part in our first ever Annual Survey and guarantee you’re represented in the results. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 8, 2023
© 2023 Advanced Custom Fields.