Commit 71b08ef6298 for woocommerce
commit 71b08ef62986dd4ad0af5b4c71b861254726154b
Author: Michal Iwanow <4765119+mcliwanow@users.noreply.github.com>
Date: Thu Apr 2 17:11:03 2026 +0200
Add tested and icons passthrough to WC Helper update transient (#63986)
* Add tested and icons passthrough to WC Helper update transient
The WC Helper Updater builds the update_plugins transient item from the WCCOM API response but only forwards a subset of fields. The API now returns `tested` (WP compatibility) and `icons` (extension thumbnails), but they are silently dropped.
Forward both fields from the API response data to the transient item, following the same conditional pattern as the existing `requires_php` passthrough. This allows WordPress core to display compatibility info and extension icons on the Updates page for WCCOM-hosted extensions.
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: woocommercebot <woocommercebot@users.noreply.github.com>
diff --git a/plugins/woocommerce/changelog/63986-fix-wccom-ext-tested-up-to b/plugins/woocommerce/changelog/63986-fix-wccom-ext-tested-up-to
new file mode 100644
index 00000000000..38349038de3
--- /dev/null
+++ b/plugins/woocommerce/changelog/63986-fix-wccom-ext-tested-up-to
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Pass `tested` and `icons` fields from WooCommerce.com update-check API response into the `update_plugins` site transient, allowing WordPress to display compatibility info and extension icons on the Updates page.
\ No newline at end of file
diff --git a/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php b/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php
index 75bbce882ab..a26e1c8cd92 100644
--- a/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php
+++ b/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php
@@ -108,6 +108,14 @@ class WC_Helper_Updater {
$item['requires_php'] = $data['requires_php'];
}
+ if ( isset( $data['tested'] ) ) {
+ $item['tested'] = $data['tested'];
+ }
+
+ if ( isset( $data['icons'] ) ) {
+ $item['icons'] = $data['icons'];
+ }
+
if ( $transient instanceof stdClass ) {
if ( version_compare( $plugin['Version'], $data['version'], '<' ) ) {
$transient->response[ $filename ] = (object) $item;