diff --git a/templates/cart/cart.php b/templates/cart/cart.php index 9840fbf9d41..8a9c11f6139 100644 --- a/templates/cart/cart.php +++ b/templates/cart/cart.php @@ -64,9 +64,9 @@ do_action( 'woocommerce_before_cart' ); ?> $thumbnail = apply_filters( 'woocommerce_cart_item_thumbnail', $_product->get_image(), $cart_item, $cart_item_key ); if ( ! $product_permalink ) { - echo wp_kses_post( $thumbnail ); + echo $thumbnail; // PHPCS: XSS ok. } else { - printf( '%s', esc_url( $product_permalink ), wp_kses_post( $thumbnail ) ); + printf( '%s', esc_url( $product_permalink ), $thumbnail ); // PHPCS: XSS ok. } ?>