WARNING: Found wp_deregister_script in functions.php
-
WARNING: Found wp_deregister_script in functions.php. Themes must not deregister core scripts. Line 245: wp_deregister_script('jquery');Line 245:
if(!is_admin()) { wp_deregister_script('jquery'); wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false, '1.9', true); wp_enqueue_script('jquery'); }If I remove deregister, jquery won’t load. If I use just
wp_enqueue_script('jquery');it won’t load either. Is there any way how I can load jQuery 1.9 withoutwp_deregister_script?Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘WARNING: Found wp_deregister_script in functions.php’ is closed to new replies.