BUG – jQuery deregister could cause problem
-
Hi,
I deregisterd jQuery from wordpress to swap with the last version.
I’m not sure why but in one of the website the plugin crashed saying “jQuery not defined”.
Could you please change cookie-warning line 54 to
wp_enqueue_script( ‘cookie-warning’ , plugin_dir_url(__FILE__).’cookiewarning.js’,array(‘jquery’),”, true);It seems correct to specify that your plugin depends on jquery and fix the problem. up to you if you want to put a version and put it in the footer
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘BUG – jQuery deregister could cause problem’ is closed to new replies.