I need to use the lates jQuery for my WP installation. Default version is 1.2.6.
This is what I try and here are the results:
Test 1 / adding jQuery through a plugin
### Function: add javascripts
add_action('init', 'add_scripts');
function add_scripts() {
wp_enqueue_script('jQuery');
}
Test 2 / adding jQuery through a plugin
### Function: add javascripts
add_action('init', 'add_scripts');
function add_scripts() {
wp_enqueue_script('jQuery', WP_PLUGIN_URL . '/wp-my/new/plugin/js/jQuery.js');
}
Looking at the source code, I see this:
<script type='text/javascript' src='http://localhost/dev2/wp-content/plugins/wp-store-locator/js/jQuery.js?ver=2.7.1'></script>
Version 2.7.1? Looking at jQuery.js, it says v1.3.6.....
And what about replacing the old jQuery.js with the new version? IS that good or bad?