From e03200195331a36cb7e858816d8b37a52d7a0d36 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Fri, 18 Nov 2016 03:37:59 -0200 Subject: [PATCH] Fixed undefined variable on update_customer_meta_fields() --- includes/api/class-wc-rest-customers-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/class-wc-rest-customers-controller.php b/includes/api/class-wc-rest-customers-controller.php index 41ec3f612b9..408cf45eb74 100644 --- a/includes/api/class-wc-rest-customers-controller.php +++ b/includes/api/class-wc-rest-customers-controller.php @@ -532,7 +532,7 @@ class WC_REST_Customers_Controller extends WC_REST_Controller { if ( isset( $request['meta_data'] ) ) { if ( is_array( $request['meta_data'] ) ) { foreach ( $request['meta_data'] as $meta ) { - $coupon->update_meta_data( $meta['key'], $meta['value'], $meta['id'] ); + $customer->update_meta_data( $meta['key'], $meta['value'], $meta['id'] ); } } }