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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.