From d9c971ee20d1aae92d7f7f40b30ad69961e7279b Mon Sep 17 00:00:00 2001 From: Boost Date: Tue, 29 Jan 2019 13:27:05 +0000 Subject: [PATCH] Update class-wc-structured-data.php. Line 214, changed wpautop to wp_filter_nohtml_kses --- includes/class-wc-structured-data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-structured-data.php b/includes/class-wc-structured-data.php index ac743c68462..25af41c8983 100644 --- a/includes/class-wc-structured-data.php +++ b/includes/class-wc-structured-data.php @@ -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() ) {