• This patch prevents the lightbox-plus javascript from being included if the colorbox.js was or will not be included (enqueue). Happened to be as we have another plugin which removes scripts in certain situations.

    --- a/lightbox-plus/classes/actions.class.php
    +++ b/lightbox-plus/classes/actions.class.php
    @@ -65,6 +65,9 @@
     			*/
     			function lightboxPlusColorbox( ) {
     				global $g_lightbox_plus_url;
    +				if ( ! wp_script_is( 'colorbox', 'queue' ) ) {
    +					return;
    +				}
     				if ( !empty( $this->lightboxOptions ) ) {
     					$lightboxPlusOptions     = $this->getAdminOptions( $this->lightboxOptionsName );
     					$lightboxPlusJavaScript  = "";

    http://wordpress.org/extend/plugins/lightbox-plus/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Lightbox Plus] Patch: prevent colorbox error when colorbox.js not loaded’ is closed to new replies.