From 8fa6733a04107f848e8ed416523c5041048f27fc Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Thu, 5 May 2016 13:34:28 -0300 Subject: [PATCH] [REST API] Fixed missing variable --- includes/api/class-wc-rest-taxes-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/class-wc-rest-taxes-controller.php b/includes/api/class-wc-rest-taxes-controller.php index 44a4bed1a53..0dd2f135d46 100644 --- a/includes/api/class-wc-rest-taxes-controller.php +++ b/includes/api/class-wc-rest-taxes-controller.php @@ -359,7 +359,7 @@ class WC_REST_Taxes_Controller extends WP_REST_Controller { $response = $this->prepare_item_for_response( $tax, $request ); $response = rest_ensure_response( $response ); $response->set_status( 201 ); - $response->header( 'Location', rest_url( sprintf( '/%s/%s/%d', $this->namespace, $this->rest_base, $id ) ) ); + $response->header( 'Location', rest_url( sprintf( '/%s/%s/%d', $this->namespace, $this->rest_base, $tax->tax_rate_id ) ) ); return $response; }