WP Lightbox 2
Please stop using the wp_print_scripts action hook to load your javascript (3 posts)

  1. This plugin is using the wp_print_scripts and wp_print_styles action hooks to load all javascript and css. wp_print_scripts fires on every page load which causes all your javascript to load everywhere including every single admin page.

    Please read http://make.wordpress.org/core/2011/12/12/use-wp_enqueue_scripts-not-wp_print_styles-to-enqueue-scripts-and-styles-for-the-frontend/
    and update your plugin to use the admin_enqueue_scripts hook for you admin side javascript and wp_enqueue_scripts for your front facing javascript.

    Thank you,


  2. Pankaj Jha
    Posted 2 years ago #

    Hi Chris Olbekson, thanks for for your advice. I will fix in next release !

  3. Pankaj Jha
    Posted 2 years ago #

    That Chris Olbekson,

    I release the fix for this WP Lightbox 2 (version 2.28).

    Thanks for the great suggestion.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.