wp_enqueue_script was called incorrectly
-
Thanks for a good plugin. Just one issue – the plugin produces the message “wp_enqueue_script was called incorrectly”.
Looking at the code it simply needs to use a different hook instead of plugins_loaded, the best one is probably wp_enqueue_scripts.
While you’re at it you should perhaps consider using the neater method to pass the js variables, outlined by Otto wp_localize_script instead of writing directly.
http://ww.wp.xz.cn/extend/plugins/jquery-lightbox-balupton-edition/
The topic ‘wp_enqueue_script was called incorrectly’ is closed to new replies.