Plugin Directory

Changeset 791858


Ignore:
Timestamp:
10/22/2013 04:11:22 PM (12 years ago)
Author:
Shellbot
Message:

Fixes an incompatibility with other lightbox plugins

Location:
easy-image-display/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • easy-image-display/trunk/readme.txt

    r785977 r791858  
    9898== Changelog ==
    9999
     100= 1.01 =
     101* Fixed an incompatibility with other lightbox plugins
     102
    100103= 1.0 =
    101104* First version
     105
     106== Upgrade Notice ==
     107
     108= 1.01 =
     109Fixes an incompatibility with other lightbox plugins.
  • easy-image-display/trunk/sb-easy-image-display.php

    r785977 r791858  
    3737        add_action( 'admin_print_scripts-widgets.php', array( $this, 'sb_easy_image_widget_js' ) );
    3838        add_action( 'admin_print_styles-widgets.php', array( $this, 'sb_easy_image_widget_css' ) );
    39         add_action( 'wp_footer', array( $this, 'public_js' ) );
    4039
    4140
     
    195194
    196195        if ( 'lightbox' == $attr['link'] ) {
    197             $attr['link'] = 'file'; 
     196            $attr['link'] = 'file';
    198197            $lightbox = 1;
    199198        }
     
    204203        if ( isset( $attr['link'] ) && "none" == $attr['link']  ) {
    205204            $output = preg_replace( array( '/<a[^>]*>/', '/<\/a>/'), '', $output );
     205        }
     206       
     207        if( 1 == $lightbox ) {
     208            $this->public_js();
    206209        }
    207210
Note: See TracChangeset for help on using the changeset viewer.