From bad93d4c86e557c60b90653413979dc191639c87 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Wed, 15 Feb 2017 12:28:45 -0200 Subject: [PATCH] Improved naming for meta_data in schema --- includes/api/class-wc-rest-coupons-controller.php | 2 +- .../api/class-wc-rest-customers-controller.php | 2 +- .../api/class-wc-rest-order-refunds-controller.php | 4 ++-- includes/api/class-wc-rest-orders-controller.php | 14 +++++++------- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/includes/api/class-wc-rest-coupons-controller.php b/includes/api/class-wc-rest-coupons-controller.php index 1d1e8ee9626..ae86cc07824 100644 --- a/includes/api/class-wc-rest-coupons-controller.php +++ b/includes/api/class-wc-rest-coupons-controller.php @@ -302,7 +302,7 @@ class WC_REST_Coupons_Controller extends WC_REST_Coupons_V1_Controller { 'readonly' => true, ), 'meta_data' => array( - 'description' => __( 'Coupons meta data.', 'woocommerce' ), + 'description' => __( 'Meta data.', 'woocommerce' ), 'type' => 'array', 'context' => array( 'view', 'edit' ), 'items' => array( diff --git a/includes/api/class-wc-rest-customers-controller.php b/includes/api/class-wc-rest-customers-controller.php index 2ea11719b7c..e8d4cbbf930 100644 --- a/includes/api/class-wc-rest-customers-controller.php +++ b/includes/api/class-wc-rest-customers-controller.php @@ -301,7 +301,7 @@ class WC_REST_Customers_Controller extends WC_REST_Customers_V1_Controller { 'readonly' => true, ), 'meta_data' => array( - 'description' => __( 'Order meta data.', 'woocommerce' ), + 'description' => __( 'Meta data.', 'woocommerce' ), 'type' => 'array', 'context' => array( 'view', 'edit' ), 'items' => array( diff --git a/includes/api/class-wc-rest-order-refunds-controller.php b/includes/api/class-wc-rest-order-refunds-controller.php index 307cbff1cfd..7bf9e028bed 100644 --- a/includes/api/class-wc-rest-order-refunds-controller.php +++ b/includes/api/class-wc-rest-order-refunds-controller.php @@ -330,7 +330,7 @@ class WC_REST_Order_Refunds_Controller extends WC_REST_Orders_Controller { 'context' => array( 'view' ), ), 'meta_data' => array( - 'description' => __( 'Order meta data.', 'woocommerce' ), + 'description' => __( 'Meta data.', 'woocommerce' ), 'type' => 'array', 'context' => array( 'view', 'edit' ), 'items' => array( @@ -442,7 +442,7 @@ class WC_REST_Order_Refunds_Controller extends WC_REST_Orders_Controller { ), ), 'meta_data' => array( - 'description' => __( 'Order item meta data.', 'woocommerce' ), + 'description' => __( 'Meta data.', 'woocommerce' ), 'type' => 'array', 'context' => array( 'view', 'edit' ), 'items' => array( diff --git a/includes/api/class-wc-rest-orders-controller.php b/includes/api/class-wc-rest-orders-controller.php index df8cdaf0163..d2fe346905c 100644 --- a/includes/api/class-wc-rest-orders-controller.php +++ b/includes/api/class-wc-rest-orders-controller.php @@ -1092,7 +1092,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller { 'readonly' => true, ), 'meta_data' => array( - 'description' => __( 'Order meta data.', 'woocommerce' ), + 'description' => __( 'Meta data.', 'woocommerce' ), 'type' => 'array', 'context' => array( 'view', 'edit' ), 'items' => array( @@ -1204,7 +1204,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller { ), ), 'meta_data' => array( - 'description' => __( 'Order item meta data.', 'woocommerce' ), + 'description' => __( 'Meta data.', 'woocommerce' ), 'type' => 'array', 'context' => array( 'view', 'edit' ), 'items' => array( @@ -1242,7 +1242,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller { 'readonly' => true, ), 'meta' => array( - 'description' => __( 'Order item meta data (formatted).', 'woocommerce' ), + 'description' => __( 'Meta data (formatted).', 'woocommerce' ), 'type' => 'array', 'context' => array( 'view', 'edit' ), 'readonly' => true, @@ -1324,7 +1324,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller { 'readonly' => true, ), 'meta_data' => array( - 'description' => __( 'Order item meta data.', 'woocommerce' ), + 'description' => __( 'Meta data.', 'woocommerce' ), 'type' => 'array', 'context' => array( 'view', 'edit' ), 'items' => array( @@ -1410,7 +1410,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller { ), ), 'meta_data' => array( - 'description' => __( 'Order item meta data.', 'woocommerce' ), + 'description' => __( 'Meta data.', 'woocommerce' ), 'type' => 'array', 'context' => array( 'view', 'edit' ), 'items' => array( @@ -1508,7 +1508,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller { ), ), 'meta_data' => array( - 'description' => __( 'Order item meta data.', 'woocommerce' ), + 'description' => __( 'Meta data.', 'woocommerce' ), 'type' => 'array', 'context' => array( 'view', 'edit' ), 'items' => array( @@ -1566,7 +1566,7 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller { 'readonly' => true, ), 'meta_data' => array( - 'description' => __( 'Order item meta data.', 'woocommerce' ), + 'description' => __( 'Meta data.', 'woocommerce' ), 'type' => 'array', 'context' => array( 'view', 'edit' ), 'items' => array(