Merge pull request #30301 from woocommerce/fix/30290
Use WC Version for loading scripts instead of hardcoding them closes …
This commit is contained in:
commit
dc3b3dc662
|
@ -174,42 +174,42 @@ class WC_Frontend_Scripts {
|
|||
'flexslider' => array(
|
||||
'src' => self::get_asset_url( 'assets/js/flexslider/jquery.flexslider' . $suffix . '.js' ),
|
||||
'deps' => array( 'jquery' ),
|
||||
'version' => '2.7.2',
|
||||
'version' => '2.7.2-wc.' . $version,
|
||||
),
|
||||
'js-cookie' => array(
|
||||
'src' => self::get_asset_url( 'assets/js/js-cookie/js.cookie' . $suffix . '.js' ),
|
||||
'deps' => array(),
|
||||
'version' => '2.1.4',
|
||||
'version' => '2.1.4-wc.' . $version,
|
||||
),
|
||||
'jquery-blockui' => array(
|
||||
'src' => self::get_asset_url( 'assets/js/jquery-blockui/jquery.blockUI' . $suffix . '.js' ),
|
||||
'deps' => array( 'jquery' ),
|
||||
'version' => '2.70',
|
||||
'version' => '2.7.0-wc.' . $version,
|
||||
),
|
||||
'jquery-cookie' => array( // deprecated.
|
||||
'src' => self::get_asset_url( 'assets/js/jquery-cookie/jquery.cookie' . $suffix . '.js' ),
|
||||
'deps' => array( 'jquery' ),
|
||||
'version' => '1.4.1',
|
||||
'version' => '1.4.1-wc.' . $version,
|
||||
),
|
||||
'jquery-payment' => array(
|
||||
'src' => self::get_asset_url( 'assets/js/jquery-payment/jquery.payment' . $suffix . '.js' ),
|
||||
'deps' => array( 'jquery' ),
|
||||
'version' => '3.0.0',
|
||||
'version' => '3.0.0-wc.' . $version,
|
||||
),
|
||||
'photoswipe' => array(
|
||||
'src' => self::get_asset_url( 'assets/js/photoswipe/photoswipe' . $suffix . '.js' ),
|
||||
'deps' => array(),
|
||||
'version' => '4.1.1',
|
||||
'version' => '4.1.1-wc.' . $version,
|
||||
),
|
||||
'photoswipe-ui-default' => array(
|
||||
'src' => self::get_asset_url( 'assets/js/photoswipe/photoswipe-ui-default' . $suffix . '.js' ),
|
||||
'deps' => array( 'photoswipe' ),
|
||||
'version' => '4.1.1',
|
||||
'version' => '4.1.1-wc.' . $version,
|
||||
),
|
||||
'prettyPhoto' => array( // deprecated.
|
||||
'src' => self::get_asset_url( 'assets/js/prettyPhoto/jquery.prettyPhoto' . $suffix . '.js' ),
|
||||
'deps' => array( 'jquery' ),
|
||||
'version' => '3.1.6',
|
||||
'version' => '3.1.6-wc.' . $version,
|
||||
),
|
||||
'prettyPhoto-init' => array( // deprecated.
|
||||
'src' => self::get_asset_url( 'assets/js/prettyPhoto/jquery.prettyPhoto.init' . $suffix . '.js' ),
|
||||
|
@ -219,12 +219,12 @@ class WC_Frontend_Scripts {
|
|||
'select2' => array(
|
||||
'src' => self::get_asset_url( 'assets/js/select2/select2.full' . $suffix . '.js' ),
|
||||
'deps' => array( 'jquery' ),
|
||||
'version' => '4.0.3',
|
||||
'version' => '4.0.3-wc.' . $version,
|
||||
),
|
||||
'selectWoo' => array(
|
||||
'src' => self::get_asset_url( 'assets/js/selectWoo/selectWoo.full' . $suffix . '.js' ),
|
||||
'deps' => array( 'jquery' ),
|
||||
'version' => '1.0.9',
|
||||
'version' => '1.0.9-wc.' . $version,
|
||||
),
|
||||
'wc-address-i18n' => array(
|
||||
'src' => self::get_asset_url( 'assets/js/frontend/address-i18n' . $suffix . '.js' ),
|
||||
|
@ -299,7 +299,7 @@ class WC_Frontend_Scripts {
|
|||
'zoom' => array(
|
||||
'src' => self::get_asset_url( 'assets/js/zoom/jquery.zoom' . $suffix . '.js' ),
|
||||
'deps' => array( 'jquery' ),
|
||||
'version' => '1.7.21',
|
||||
'version' => '1.7.21-wc.' . $version,
|
||||
),
|
||||
);
|
||||
foreach ( $register_scripts as $name => $props ) {
|
||||
|
|
Loading…
Reference in New Issue