Skip to content

Commit 6ebb8a8

Browse files
authored
Merge pull request #342 from athemes/improvement/rt/fusion-builder
Quick view allow style tags to be rendered in the short description
2 parents 6aaf5ba + bec5d79 commit 6ebb8a8

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

inc/plugins/woocommerce/features/quick-view.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,21 @@ function botiga_quick_view_summary_excerpt( $product = null ) {
358358
*/
359359
do_action( 'botiga_quick_view_product_excerpt_start' ); ?>
360360
<div class="woocommerce-product-details__short-description">
361-
<p><?php echo wp_kses_post( do_shortcode( $short_description ) ); ?></p>
361+
<p><?php
362+
$allowed_html = array_merge(
363+
wp_kses_allowed_html('post'),
364+
array(
365+
'style' => array(
366+
'type' => true,
367+
'id' => true,
368+
'class' => true,
369+
'media' => true,
370+
),
371+
),
372+
);
373+
374+
echo wp_kses( do_shortcode( $short_description ), $allowed_html );
375+
?></p>
362376
</div>
363377
<?php
364378
/**

0 commit comments

Comments
 (0)