Fix variable name in Reports\Stock\Stats (#37057)

* Fix variable name in Reports\Stock\Stats

* Add since tag

* Add changelog
This commit is contained in:
Viktor Szépe 2023-03-07 02:44:51 +01:00 committed by GitHub
parent e8b8c058b0
commit f1a3f388bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Corrects a variable name in Reports\Stock\Stats. It was missed during the last name change.

View File

@ -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 );
}
/**