Commit f49226662a4 for woocommerce

commit f49226662a437bcb08b39ae140c1c2bacea3a119
Author: Jorge A. Torres <jorge.torres@automattic.com>
Date:   Tue Mar 31 15:41:49 2026 +0100

    Allow product image URLs with non-ASCII characters in cart/checkout blocks (#63763)

diff --git a/plugins/woocommerce/changelog/fix-59043 b/plugins/woocommerce/changelog/fix-59043
new file mode 100644
index 00000000000..658fd28d2fc
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-59043
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Fix Cart/Checkout blocks not displaying product images with non-ASCII filenames.
diff --git a/plugins/woocommerce/src/StoreApi/Schemas/V1/CartItemSchema.php b/plugins/woocommerce/src/StoreApi/Schemas/V1/CartItemSchema.php
index b1895488ed6..a7feb68c076 100644
--- a/plugins/woocommerce/src/StoreApi/Schemas/V1/CartItemSchema.php
+++ b/plugins/woocommerce/src/StoreApi/Schemas/V1/CartItemSchema.php
@@ -122,13 +122,13 @@ class CartItemSchema extends ItemSchema {
 			}

 			// Check if thumbnail is a valid url.
-			if ( empty( $image->thumbnail ) || ! filter_var( $image->thumbnail, FILTER_VALIDATE_URL ) ) {
+			if ( empty( $image->thumbnail ) || ! wp_parse_url( $image->thumbnail, PHP_URL_HOST ) ) {
 				$logger->warning( sprintf( 'After passing through woocommerce_cart_item_images filter, image with id %s did not have a valid thumbnail property.', $image->id ) );
 				continue;
 			}

 			// Check if src is a valid url.
-			if ( empty( $image->src ) || ! filter_var( $image->src, FILTER_VALIDATE_URL ) ) {
+			if ( empty( $image->src ) || ! wp_parse_url( $image->src, PHP_URL_HOST ) ) {
 				$logger->warning( sprintf( 'After passing through woocommerce_cart_item_images filter, image with id %s did not have a valid src property.', $image->id ) );
 				continue;
 			}