[Bug Fix] Depend on jQuery
-
Due to a nuance of the way my theme is set up, jQuery ended up being loaded after the fdfootnotes.js. In turn, causing javascript errors.
To resolve this I updated the wp_enqueue() call to depend on jquery:
wp_register_script(‘fdfootnote_script’, get_bloginfo(‘wpurl’).’/’.PLUGINDIR.’/’.dirname(plugin_basename(__FILE__)).’/fdfootnotes.js’, array(‘jquery’), ‘1.3’);
- The topic ‘[Bug Fix] Depend on jQuery’ is closed to new replies.