Commit 62cb0fbe84a for woocommerce

commit 62cb0fbe84a00f5b5158300e7d28451caf59dca5
Author: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
Date:   Tue Jul 14 10:07:31 2026 +0200

    Restore deprecated product gallery image count helper (#66550)

    * Restore deprecated product gallery image count helper

    * Delegate deprecated gallery image count helper

diff --git a/plugins/woocommerce/src/Blocks/Utils/ProductGalleryUtils.php b/plugins/woocommerce/src/Blocks/Utils/ProductGalleryUtils.php
index 8bab9ada40e..0c1082d767b 100644
--- a/plugins/woocommerce/src/Blocks/Utils/ProductGalleryUtils.php
+++ b/plugins/woocommerce/src/Blocks/Utils/ProductGalleryUtils.php
@@ -44,6 +44,20 @@ class ProductGalleryUtils {
 		return self::get_image_src_data( $all_image_ids, $size, $product->get_title() );
 	}

+	/**
+	 * Get the product gallery image count.
+	 *
+	 * @deprecated 11.1.0 Use get_product_gallery_media_count instead.
+	 *
+	 * @param \WC_Product $product The product object to retrieve the gallery images for.
+	 * @return int The number of media items in the product gallery.
+	 */
+	public static function get_product_gallery_image_count( $product ) {
+		wc_deprecated_function( __METHOD__, '11.1.0', 'get_product_gallery_media_count' );
+
+		return self::get_product_gallery_media_count( $product );
+	}
+
 	/**
 	 * Get all media items for the product gallery.
 	 *