Commit 1a0965a94a8 for woocommerce
commit 1a0965a94a8ad13cab834c281c3cf7e8e4b96d8b
Author: Viktor Szépe <viktor@szepe.net>
Date: Thu Aug 27 20:40:46 2026 +0200
Remove unused render_order_downloads_column_headers parameter (#68069)
* Remove unused render_order_downloads_column_headers parameter
* Add changelog
* Update PHPStan
---------
Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>
diff --git a/plugins/woocommerce/changelog/patch-2 b/plugins/woocommerce/changelog/patch-2
new file mode 100644
index 00000000000..29905874255
--- /dev/null
+++ b/plugins/woocommerce/changelog/patch-2
@@ -0,0 +1,5 @@
+Significance: patch
+Type: fix
+Comment: Remove unused render_order_downloads_column_headers parameter
+
+
diff --git a/plugins/woocommerce/phpstan-baseline.neon b/plugins/woocommerce/phpstan-baseline.neon
index 27faa90dba0..10b6b9ad775 100644
--- a/plugins/woocommerce/phpstan-baseline.neon
+++ b/plugins/woocommerce/phpstan-baseline.neon
@@ -50667,12 +50667,6 @@ parameters:
count: 1
path: src/Blocks/BlockTypes/OrderConfirmation/Downloads.php
- -
- message: '#^Method Automattic\\WooCommerce\\Blocks\\BlockTypes\\OrderConfirmation\\Downloads\:\:render_order_downloads_column_headers\(\) invoked with 1 parameter, 0 required\.$#'
- identifier: arguments.count
- count: 1
- path: src/Blocks/BlockTypes/OrderConfirmation/Downloads.php
-
-
message: '#^Parameter \#1 \$text of function esc_attr expects string, \(int\|false\) given\.$#'
identifier: argument.type
diff --git a/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Downloads.php b/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Downloads.php
index 95b44688dcd..d3bc53baf88 100644
--- a/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Downloads.php
+++ b/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Downloads.php
@@ -39,7 +39,7 @@ class Downloads extends AbstractOrderConfirmationBlock {
<table cellspacing="0" class="wc-block-order-confirmation-downloads__table ' . esc_attr( $classes_and_styles['classes'] ) . '" style="' . esc_attr( $classes_and_styles['styles'] ) . '">
<thead>
<tr>
- ' . $this->render_order_downloads_column_headers( $order ) . '
+ ' . $this->render_order_downloads_column_headers() . '
</td>
</thead>
<tbody>