From 827083c051d7e277f4e31722f9240973b1c3d6ed Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 3 Aug 2017 08:28:35 +0200 Subject: [PATCH] Add shortcode to description output in structured data Closes #16309 --- 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 d689bef9429..8330ba58af6 100644 --- a/includes/class-wc-structured-data.php +++ b/includes/class-wc-structured-data.php @@ -214,7 +214,7 @@ class WC_Structured_Data { 'availability' => 'https://schema.org/' . $stock = ( $product->is_in_stock() ? 'InStock' : 'OutOfStock' ), 'sku' => $product->get_sku(), 'image' => wp_get_attachment_url( $product->get_image_id() ), - 'description' => $product->get_description(), + 'description' => wpautop( do_shortcode( $product->get_description() ) ), 'seller' => array( '@type' => 'Organization', 'name' => $shop_name,