Change product categories image object schema from name to title to bring docs in line with the actual output.

This commit is contained in:
Gerhard Potgieter 2017-11-29 11:06:41 +02:00
parent 7b74dc2576
commit 5f534e7388
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ class WC_REST_Product_Categories_Controller extends WC_REST_Product_Categories_V
'format' => 'uri',
'context' => array( 'view', 'edit' ),
),
'name' => array(
'title' => array(
'description' => __( 'Image name.', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view', 'edit' ),