From 80ea5420c33bb2765245c34dbf920a6e13696f0f Mon Sep 17 00:00:00 2001 From: claudiosmweb Date: Fri, 28 Nov 2014 10:22:22 -0200 Subject: [PATCH] [API] Fixed the action parameters in the methods to create and edit orders, closes #6845 --- includes/api/class-wc-api-orders.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/class-wc-api-orders.php b/includes/api/class-wc-api-orders.php index f4660eaeec3..3bf0f7bd270 100644 --- a/includes/api/class-wc-api-orders.php +++ b/includes/api/class-wc-api-orders.php @@ -441,7 +441,7 @@ class WC_API_Orders extends WC_API_Resource { wc_delete_shop_order_transients( $order->id ); - do_action( 'woocommerce_api_create_order', $order->id, $this ); + do_action( 'woocommerce_api_create_order', $order->id, $data ); return $this->get_order( $order->id ); @@ -593,7 +593,7 @@ class WC_API_Orders extends WC_API_Resource { wc_delete_shop_order_transients( $order->id ); - do_action( 'woocommerce_api_edit_order', $order->id, $this ); + do_action( 'woocommerce_api_edit_order', $order->id, $data ); return $this->get_order( $id );