Properly format variation description in REST API v2

This commit is contained in:
Claudio Sanches 2017-04-06 13:02:51 -03:00
parent f3c2e6c5f6
commit fc9ba64e50
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ class WC_REST_Product_Variations_Controller extends WC_REST_Products_Controller
'date_created_gmt' => wc_rest_prepare_date_response( $object->get_date_created() ),
'date_modified' => wc_rest_prepare_date_response( $object->get_date_modified(), false ),
'date_modified_gmt' => wc_rest_prepare_date_response( $object->get_date_modified() ),
'description' => $object->get_description(),
'description' => wc_format_content( $object->get_description() ),
'permalink' => $object->get_permalink(),
'sku' => $object->get_sku(),
'price' => $object->get_price(),