WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Lightbox
wp_enqueue_script was called incorrectly (1 post)

  1. itinerant
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/jquery-lightbox-balupton-edition/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic