From 09cbc61521828e58093f5efb36937bdb4ce18fbd Mon Sep 17 00:00:00 2001 From: Yash Kapoor <52190071+yash-webkul@users.noreply.github.com> Date: Wed, 28 Aug 2019 19:51:21 +0530 Subject: [PATCH] Update mini-cart.php Fixed escaping function for attribute value. --- templates/cart/mini-cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/cart/mini-cart.php b/templates/cart/mini-cart.php index 41db017d7cb..3d3be6423d3 100644 --- a/templates/cart/mini-cart.php +++ b/templates/cart/mini-cart.php @@ -44,7 +44,7 @@ do_action( 'woocommerce_before_mini_cart' ); ?> sprintf( '×', esc_url( wc_get_cart_remove_url( $cart_item_key ) ), - esc_html__( 'Remove this item', 'woocommerce' ), + esc_attr__( 'Remove this item', 'woocommerce' ), esc_attr( $product_id ), esc_attr( $cart_item_key ), esc_attr( $_product->get_sku() )