Merge branch 'issue/31562-filter-coupons-by-status' of https://github.com/woocommerce/woocommerce into issue/31562-filter-coupons-by-status

This commit is contained in:
anitaamurthy 2022-01-07 16:46:20 +05:30
commit f43ae46ff3
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class WC_REST_Coupons_Controller extends WC_REST_Coupons_V2_Controller {
protected $namespace = 'wc/v3';
protected function prepare_objects_query($request) {
$args = WC_REST_CRUD_Controller::prepare_objects_query( $request );
$args = $this->prepare_objects_query( $request );
// Set post_status.
$args['post_status'] = $request['status'];