Merge pull request #16335 from woocommerce/fix/16309

Add shortcode to description output in structured data
This commit is contained in:
Claudiu Lodromanean 2017-08-03 11:09:16 -07:00 committed by GitHub
commit ab543148ff
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ class WC_Structured_Data {
'availability' => 'https://schema.org/' . $stock = ( $product->is_in_stock() ? 'InStock' : 'OutOfStock' ), 'availability' => 'https://schema.org/' . $stock = ( $product->is_in_stock() ? 'InStock' : 'OutOfStock' ),
'sku' => $product->get_sku(), 'sku' => $product->get_sku(),
'image' => wp_get_attachment_url( $product->get_image_id() ), 'image' => wp_get_attachment_url( $product->get_image_id() ),
'description' => $product->get_description(), 'description' => wpautop( do_shortcode( $product->get_description() ) ),
'seller' => array( 'seller' => array(
'@type' => 'Organization', '@type' => 'Organization',
'name' => $shop_name, 'name' => $shop_name,