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:
parent
e8b8c058b0
commit
f1a3f388bd
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
Corrects a variable name in Reports\Stock\Stats. It was missed during the last name change.
|
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue