Update for Woocommerce 3.2.1 Compatibility
This commit is contained in:
parent
37dc527e5b
commit
d68baaaff7
|
@ -15,7 +15,7 @@
|
||||||
* @see https://docs.woocommerce.com/document/template-structure/
|
* @see https://docs.woocommerce.com/document/template-structure/
|
||||||
* @author WooThemes
|
* @author WooThemes
|
||||||
* @package WooCommerce/Templates
|
* @package WooCommerce/Templates
|
||||||
* @version 3.1.0
|
* @version 3.2.0
|
||||||
*/
|
*/
|
||||||
if ( ! defined( 'ABSPATH' ) ) {
|
if ( ! defined( 'ABSPATH' ) ) {
|
||||||
exit;
|
exit;
|
||||||
|
@ -42,10 +42,11 @@ do_action( 'woocommerce_before_mini_cart' ); ?>
|
||||||
<li class="woocommerce-mini-cart-item <?php echo esc_attr( apply_filters( 'woocommerce_mini_cart_item_class', 'mini_cart_item', $cart_item, $cart_item_key ) ); ?>">
|
<li class="woocommerce-mini-cart-item <?php echo esc_attr( apply_filters( 'woocommerce_mini_cart_item_class', 'mini_cart_item', $cart_item, $cart_item_key ) ); ?>">
|
||||||
<?php
|
<?php
|
||||||
echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf(
|
echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf(
|
||||||
'<a href="%s" class="remove" aria-label="%s" data-product_id="%s" data-product_sku="%s">×</a>',
|
'<a href="%s" class="remove remove_from_cart_button" aria-label="%s" data-product_id="%s" data-cart_item_key="%s" data-product_sku="%s">×</a>',
|
||||||
esc_url( WC()->cart->get_remove_url( $cart_item_key ) ),
|
esc_url( WC()->cart->get_remove_url( $cart_item_key ) ),
|
||||||
esc_attr__( 'Remove this item', 'woocommerce' ),
|
__( 'Remove this item', 'woocommerce' ),
|
||||||
esc_attr( $product_id ),
|
esc_attr( $product_id ),
|
||||||
|
esc_attr( $cart_item_key ),
|
||||||
esc_attr( $_product->get_sku() )
|
esc_attr( $_product->get_sku() )
|
||||||
), $cart_item_key );
|
), $cart_item_key );
|
||||||
?>
|
?>
|
||||||
|
|
Reference in New Issue