diff --git a/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-coupons-controller.php b/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-coupons-controller.php index ea794ceed3c..9ddd0aa58b1 100644 --- a/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-coupons-controller.php +++ b/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-coupons-controller.php @@ -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'];