Problems with WP 2.6 loading jquery
-
Hello,
Wondering why my jquery path is being screwed up when loaded by default.
If I leave code as is in NextGen Gallery then it loads as follows … placing the page name (images) infront of the wp-include. Which is the wrong path.
<script type=’text/javascript’ src=’https://domainname.com/images//wp-includes/js/jquery/jquery.js?ver=1.2.6′></script>
However, if I remove the condition in nggallery.php and force it to deregister the script and reload it, then it loads correctly.
<script type=’text/javascript’ src=’/wp-content/plugins/nggallery/admin/js/jquery.js?ver=1.2.6′></script>
‘//if ($wp_version < “2.5”) {
//if ($wp_version > “2.1.3”) wp_deregister_script(‘jquery’);
//wp_enqueue_script(‘jquery’, NGGALLERY_URLPATH .’admin/js/jquery.js’, FALSE, ‘1.2.2’);
//}
if ($wp_version > “2.1.3”) wp_deregister_script(‘jquery’);
wp_enqueue_script(‘jquery’, NGGALLERY_URLPATH .’admin/js/jquery.js’, FALSE, ‘1.2.6’);’
- The topic ‘Problems with WP 2.6 loading jquery’ is closed to new replies.