Fixed shortcode render for variations and backwards compatibility
Fixes #13949
This commit is contained in:
parent
b059851882
commit
567a551d83
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue