Update class-wc-structured-data.php. Line 214, changed wpautop to wp_filter_nohtml_kses

This commit is contained in:
Boost 2019-01-29 13:27:05 +00:00
parent 00a93ae8f0
commit d9c971ee20
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ class WC_Structured_Data {
}
$markup['image'] = wp_get_attachment_url( $product->get_image_id() );
$markup['description'] = wpautop( do_shortcode( $product->get_short_description() ? $product->get_short_description() : $product->get_description() ) );
$markup['description'] = wp_filter_nohtml_kses( do_shortcode( $product->get_short_description() ? $product->get_short_description() : $product->get_description() ) );
$markup['sku'] = $product->get_sku();
if ( '' !== $product->get_price() ) {