Use esc_attr__() insted of __()
This commit is contained in:
parent
57a75efefa
commit
0a51b721aa
|
@ -56,7 +56,7 @@ do_action( 'woocommerce_before_cart' ); ?>
|
||||||
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" aria-label="%s" data-product_id="%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 ) ),
|
||||||
__( 'Remove this item', 'understrap' ),
|
esc_attr__( 'Remove this item', 'understrap' ),
|
||||||
esc_attr( $product_id ),
|
esc_attr( $product_id ),
|
||||||
esc_attr( $_product->get_sku() )
|
esc_attr( $_product->get_sku() )
|
||||||
), $cart_item_key );
|
), $cart_item_key );
|
||||||
|
|
|
@ -46,7 +46,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf(
|
echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf(
|
||||||
'<a href="%s" class="remove" title="%s" data-product_id="%s" data-product_sku="%s">×</a>',
|
'<a href="%s" class="remove" title="%s" data-product_id="%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 ) ),
|
||||||
__( 'Remove this item', 'understrap' ),
|
esc_attr__( 'Remove this item', 'understrap' ),
|
||||||
esc_attr( $product_id ),
|
esc_attr( $product_id ),
|
||||||
esc_attr( $_product->get_sku() )
|
esc_attr( $_product->get_sku() )
|
||||||
), $cart_item_key );
|
), $cart_item_key );
|
||||||
|
|
Reference in New Issue