Update class-wc-structured-data.php. Line 214, changed wpautop to wp_filter_nohtml_kses
This commit is contained in:
parent
00a93ae8f0
commit
d9c971ee20
|
@ -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() ) {
|
||||
|
|
Loading…
Reference in New Issue