[REST API] Fixed typos on products schema

This commit is contained in:
Claudio Sanches 2018-01-30 15:03:01 -02:00
parent 5bf5eadfaa
commit 05a80e2d4f
2 changed files with 2 additions and 4 deletions

View File

@ -674,7 +674,7 @@ class WC_REST_Product_Variations_Controller extends WC_REST_Products_Controller
'context' => array( 'view', 'edit' ), 'context' => array( 'view', 'edit' ),
), ),
'date_on_sale_to_gmt' => array( 'date_on_sale_to_gmt' => array(
'description' => __( "End date of sale price, in the site's timezone.", 'woocommerce' ), 'description' => __( 'End date of sale price, as GMT.', 'woocommerce' ),
'type' => 'date-time', 'type' => 'date-time',
'context' => array( 'view', 'edit' ), 'context' => array( 'view', 'edit' ),
), ),

View File

@ -4,8 +4,6 @@
* *
* Handles requests to the /products endpoint. * Handles requests to the /products endpoint.
* *
* @author WooThemes
* @category API
* @package WooCommerce/API * @package WooCommerce/API
* @since 2.6.0 * @since 2.6.0
*/ */
@ -1823,7 +1821,7 @@ class WC_REST_Products_Controller extends WC_REST_Legacy_Products_Controller {
), ),
'images' => array( 'images' => array(
'description' => __( 'List of images.', 'woocommerce' ), 'description' => __( 'List of images.', 'woocommerce' ),
'type' => 'object', 'type' => 'array',
'context' => array( 'view', 'edit' ), 'context' => array( 'view', 'edit' ),
'items' => array( 'items' => array(
'type' => 'object', 'type' => 'object',