wp_enqueue_script called incorrectly
-
Hello,
I just wanted to let you know that the latest version (3.7.0) on a WordPress installation with
WP_DEBUGenabled, outputs the following notice:Notice:
wp_enqueue_scriptwas called incorrectly. Scripts and styles should not be registered or enqueued until thewp_enqueue_scripts,admin_enqueue_scripts, orlogin_enqueue_scriptshooks.The issue seems to be caused by this
wp_enqueue_script()://Add Gutenberg Widget wp_enqueue_script( 'cookiebot-declaration', plugin_dir_url( __FILE__ ) . '/js/block.js', array('wp-blocks', 'wp-i18n', 'wp-element'), // Required scripts for the block $this->version );which is located in the
gutenberg_block_setup()method of theCookiebot_WPclass incookiebot.php(line 225)
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘wp_enqueue_script called incorrectly’ is closed to new replies.