Conversation
supportWhen debugging my site I am getting an error Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. After reviewing the feature-me plugin, I determined the error is coming from line 51 in the init.php file. I made the following change on my copy: ////wp_enqueue_script(‘jquery’); function add_public_scripts() { wp_enqueue_script(‘jquery’); } add_action(‘wp_enqueue_scripts’,’add_public_scripts’); Thanks Mark https://wordpress.org/plugins/feature-me/
Thanks for letting me know MarkCline, I’ll get that fixed in the next version.
Thanks for letting me know MarkCline, I’ll get that fixed in the next version.