jquery not fund
-
It looks like adrotate v5.17.4 is not listing jquery as a dependency when loading jquery.groups.js and jquery.clicker.js. This causes errors to display in the console, and dynamic ads do not rotate. I changed adrotate-output.php and now it works.
adrotate-output.php line 578 – 586
if(get_option('adrotate_dynamic_required') > 0) {
wp_enqueue_script('adrotate-groups', plugins_url('/library/jquery.groups.js', __FILE__), ['jquery'], null, $in_footer);
}
if($adrotate_config['stats'] == 1) {
wp_enqueue_script('adrotate-clicker', plugins_url('/library/jquery.clicker.js', __FILE__), ['jquery'], null, $in_footer);
wp_localize_script('adrotate-clicker', 'click_object', array('ajax_url' => admin_url('admin-ajax.php')));
wp_localize_script('adrotate-groups', 'impression_object', array('ajax_url' => admin_url('admin-ajax.php')));
}
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.