Make jquery-blockui dependencies for wc-add-to-cart and wc-add-to-cart-variation since it uses the block function but has not dependency on the woocommerce script.

This commit is contained in:
Gerhard Potgieter 2018-08-08 08:56:49 +02:00
parent 70e9b747e8
commit 90cc41c895
1 changed files with 2 additions and 2 deletions

View File

@ -256,12 +256,12 @@ class WC_Frontend_Scripts {
), ),
'wc-add-to-cart' => array( 'wc-add-to-cart' => array(
'src' => self::get_asset_url( 'assets/js/frontend/add-to-cart' . $suffix . '.js' ), 'src' => self::get_asset_url( 'assets/js/frontend/add-to-cart' . $suffix . '.js' ),
'deps' => array( 'jquery' ), 'deps' => array( 'jquery', 'jquery-blockui' ),
'version' => WC_VERSION, 'version' => WC_VERSION,
), ),
'wc-add-to-cart-variation' => array( 'wc-add-to-cart-variation' => array(
'src' => self::get_asset_url( 'assets/js/frontend/add-to-cart-variation' . $suffix . '.js' ), 'src' => self::get_asset_url( 'assets/js/frontend/add-to-cart-variation' . $suffix . '.js' ),
'deps' => array( 'jquery', 'wp-util' ), 'deps' => array( 'jquery', 'wp-util', 'jquery-blockui' ),
'version' => WC_VERSION, 'version' => WC_VERSION,
), ),
'wc-geolocation' => array( 'wc-geolocation' => array(