From a135f02f41fcbd47cdb11ad980d4287b7d9068a7 Mon Sep 17 00:00:00 2001 From: Karoly Gossler Date: Tue, 21 May 2019 09:10:56 +0200 Subject: [PATCH] fixed availability schema protocol As you can see in the example, the scheme only can be on http: https://schema.org/InStock The Google Search console has also marked it invalid. --- 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 9b7303ba406..170078adfd8 100644 --- a/includes/class-wc-structured-data.php +++ b/includes/class-wc-structured-data.php @@ -256,7 +256,7 @@ class WC_Structured_Data { $markup_offer += array( 'priceCurrency' => $currency, - 'availability' => 'https://schema.org/' . ( $product->is_in_stock() ? 'InStock' : 'OutOfStock' ), + 'availability' => 'http://schema.org/' . ( $product->is_in_stock() ? 'InStock' : 'OutOfStock' ), 'url' => $permalink, 'seller' => array( '@type' => 'Organization',