Improved naming for meta_data in schema

This commit is contained in:
Claudio Sanches 2017-02-15 12:28:45 -02:00
parent 0dac5e596c
commit bad93d4c86
4 changed files with 11 additions and 11 deletions

View File

@ -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(

View File

@ -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(

View File

@ -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(

View File

@ -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(