jQuery Lightbox
wp_enqueue_script was called incorrectly (1 post)

  1. Tim Smith
    Posted 3 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • jQuery Lightbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic