diff --git a/plugins/woocommerce/changelog/pr-37057 b/plugins/woocommerce/changelog/pr-37057 new file mode 100644 index 00000000000..29c071af96e --- /dev/null +++ b/plugins/woocommerce/changelog/pr-37057 @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Corrects a variable name in Reports\Stock\Stats. It was missed during the last name change. diff --git a/plugins/woocommerce/src/Admin/API/Reports/Stock/Stats/Controller.php b/plugins/woocommerce/src/Admin/API/Reports/Stock/Stats/Controller.php index 5660318dba9..6e51ac2dd98 100644 --- a/plugins/woocommerce/src/Admin/API/Reports/Stock/Stats/Controller.php +++ b/plugins/woocommerce/src/Admin/API/Reports/Stock/Stats/Controller.php @@ -68,11 +68,13 @@ class Controller extends \WC_REST_Reports_Controller { * * Allows modification of the report data right before it is returned. * + * @since 6.5.0 + * * @param WP_REST_Response $response The response object. - * @param WC_Product $product The original bject. + * @param WC_Product $report The original object. * @param WP_REST_Request $request Request used to generate the response. */ - return apply_filters( 'woocommerce_rest_prepare_report_stock_stats', $response, $product, $request ); + return apply_filters( 'woocommerce_rest_prepare_report_stock_stats', $response, $report, $request ); } /**