print javascript only to front end

I’m developing a wordpress app that I will always have full control over. I want to make sure that I have control over the jquery version. So I have a plugin that re-registers jquery:

wp_deregister_script('jquery');
wp_deregister_script('jquery-ui-core');
wp_register_script('jquery', URL_CONSTANT . "/application/includes/jquery-ui-1.8.13/js/jquery-1.5.1.min.js");
wp_register_script('jquery-ui-core', URL_CONSTANT . "/application/includes/jquery-ui-1.8.13/js/jquery-ui-1.8.13.custom.min.js", array('jquery'));

Now everybody’s gonna see what just happened when I went into the dashboard, lol. I’m getting a jQuery not defined error and nothing will work.

Read More

Has anybody got any ideas of how I should tackle this problem. One suggestion I have is to replace the jquery file in the wp-includes folder (or where ever it is), but I don’t want to have to do this for every update I do to wordpress.

any suggestions appreciated,
daithi

Related posts

Leave a Reply

1 comment