WP 3.3
When install your plugin, I recieved notice message:
Notice: wp_enqueue_script and wp_enqueue_style was called incorrectly
How to fixed this?
Thanks.
WP 3.3
When install your plugin, I recieved notice message:
Notice: wp_enqueue_script and wp_enqueue_style was called incorrectly
How to fixed this?
Thanks.
When I installed WordPress 3.3.1, I got the same error. I deactivated my plugins and the error went away. I discovered, in my case, that the Thematic plugin was at fault.
I read the following in a blog for the Thematic support site:
To remove the notice, simply replace wp_enqueue_script('jquery'); with
function thematic_enqueue_scripts() {
wp_enqueue_script('jquery');
}
add_action('wp_enqueue_scripts', 'thematic_enqueue_scripts');
To locate the correct file and line, search for "wp_enqueue_script('jquery')" in the entire plugin folder for Google Custom Search.
This worked for me. Good luck!
PS, Of course, replace the word 'thematic' with your own function name.
Thank you! That fixed my problem.
You must log in to post.