Theme code overriding plugin
-
My theme seems to be overriding this plugin with this code:
‘function theme_update_jquery_scripts() {
if(is_admin()) {
return;
}
wp_deregister_script(‘jquery’);
if (theme_get_option(‘theme_include_scripts_from_cdn’)) {
wp_register_script(‘jquery’, ‘https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js’);
} else {
wp_register_script(‘jquery’, get_bloginfo(‘template_url’, ‘display’) . ‘/jquery.js’);
}
}’And the site seems to still be loading Jquery version 1.8… Any ideas on how I remedy this situation?
Should I comment this whole thing out, or change it in some way?
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Theme code overriding plugin’ is closed to new replies.