From 3948fcf4c77b6a886dec232892187557ded85bb0 Mon Sep 17 00:00:00 2001 From: JLuis Freitas Date: Fri, 17 Jun 2016 19:07:06 +0100 Subject: [PATCH] [REST API] incorrect key on saving post_meta --- includes/api/class-wc-rest-orders-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/class-wc-rest-orders-controller.php b/includes/api/class-wc-rest-orders-controller.php index 3b89e94e14c..ddacedbf893 100644 --- a/includes/api/class-wc-rest-orders-controller.php +++ b/includes/api/class-wc-rest-orders-controller.php @@ -541,7 +541,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller { update_post_meta( $order->id, '_payment_method', $request['payment_method'] ); } if ( ! empty( $request['payment_method_title'] ) ) { - update_post_meta( $order->id, '_payment_method_title', $request['payment_method'] ); + update_post_meta( $order->id, '_payment_method_title', $request['payment_method_title'] ); } if ( true === $request['set_paid'] ) { $order->payment_complete( $request['transaction_id'] );