Fixed shortcode render for variations and backwards compatibility

Fixes #13949
This commit is contained in:
Claudio Sanches 2017-04-06 13:00:02 -03:00
parent b059851882
commit 567a551d83
2 changed files with 2 additions and 2 deletions

View File

@ -294,7 +294,7 @@ class WC_Product_Variable extends WC_Product {
'is_downloadable' => $variation->is_downloadable(),
'is_virtual' => $variation->is_virtual(),
'is_sold_individually' => $variation->is_sold_individually() ? 'yes' : 'no',
'variation_description' => $variation->get_description(),
'variation_description' => wc_format_content( $variation->get_description() ),
) ), $this, $variation );
}

View File

@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
?>
<script type="text/template" id="tmpl-variation-template">
<div class="woocommerce-variation-description">
{{{ data.variation.description }}}
{{{ data.variation.variation_description }}}
</div>
<div class="woocommerce-variation-price">