Wordpress 3.4 deregister jQuery -
After upgrading WP from 3.3 to 3.4, wp_deregister_script ('jquery'); Is no longer working (appearing in the jQuery section provided by WP).
The Deregister script is included in the functions.php file of my theme and looks like this:
if (! Is_admin ()) {wp_deregister_script ('jquery'); } After the upgrade I was trying to custom it, but nothing really does not work. For example, I also tried to delete the script, but still not.
if (! Is_admin ()) {wp_deregister_script ('jquery'); Wp_dequeue_script ('jQuery'); } Search for any opinion of your opinion and possible solutions.
Use hook to do this
add_action ('admin_enqueue_scripts', 'my_enque_func'); Function my_enque_func () {wp_deregister_script ('jquery'); Wp_register_script (...); // Enter your own script} about
Comments
Post a Comment