Plugin Directory

Changeset 394417


Ignore:
Timestamp:
06/08/2011 02:19:13 AM (15 years ago)
Author:
sivel
Message:

Fix script dependency bug

Location:
shadowbox-js/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • shadowbox-js/trunk/inc/frontend.php

    r392924 r394417  
    153153        }
    154154
    155         wp_register_script ( 'shadowbox' , apply_filters ( 'shadowbox-js' , $shadowbox ) , false , $this->sbversion , true );
     155        $dependency = $adapter != 'base' ? array ( $adapter ) : false;
     156        wp_register_script ( 'shadowbox' , apply_filters ( 'shadowbox-js' , $shadowbox ) , $dependency , $this->sbversion , true );
    156157
    157158        // If we aren't smart loading go ahead and enqueue, otherwise we will enqueue later
  • shadowbox-js/trunk/readme.txt

    r394412 r394417  
    135135== Upgrade Notice ==
    136136
     137= 3.0.3.8 =
     138
     139Missing javascript dependency registration, hook into post generation later if Smart Loading is disabled, and fix Javascript code comments so that broken HTML minification processes will not have any affect on Shadowbox.
     140
    137141= 3.0.3.7 =
    138142
     
    157161== Changelog ==
    158162
    159 = 3.0.3.7 (2001-06-07): =
     163= 3.0.3.8 (2011-06-08): =
     164* Due to large reworkings script dependencies were not being loaded when a library other than 'None' was selected on the settings page
     165
     166= 3.0.3.7 (2011-06-07): =
    160167* Missed a merge
    161168
  • shadowbox-js/trunk/shadowbox-js.php

    r394412 r394417  
    88 *
    99 * @author Matt Martz <matt@sivel.net>
    10  * @version 3.0.3.7
     10 * @version 3.0.3.8
    1111 * @package shadowbox-js
    1212 */
     
    1616Plugin URI:   http://sivel.net/wordpress/shadowbox-js/
    1717Description:  A javascript media viewer similar to Lightbox and Thickbox. Supports all types of media, not just images.
    18 Version:      3.0.3.7
     18Version:      3.0.3.8
    1919Author:       Matt Martz
    2020Author URI:   http://sivel.net/
     
    5656     * @var int
    5757     */
    58     var $version = '3.0.3.7';
     58    var $version = '3.0.3.8';
    5959
    6060    /**
  • shadowbox-js/trunk/shadowbox-title-push.php

    r394412 r394417  
    1414Plugin URI:   http://sivel.net/wordpress/shadowbox-js/
    1515Description:  Push the title attribute from the img tag to the anchor tag
    16 Version:      3.0.3.7
     16Version:      3.0.3.8
    1717Author:       Matt Martz
    1818Author URI:   http://sivel.net/
Note: See TracChangeset for help on using the changeset viewer.