From 8eebc7c90087ad14762bfad34f5d378d6c067419 Mon Sep 17 00:00:00 2001 From: James Koster Date: Fri, 4 Sep 2015 11:19:52 +0100 Subject: [PATCH] Free is an amount! MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All product prices are wrapped in `span class=“amount”`. To make themers lives easier let’s be consistent. When the product is free the price should still be wrapped. --- includes/abstracts/abstract-wc-product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/abstracts/abstract-wc-product.php b/includes/abstracts/abstract-wc-product.php index 0b43b067fb3..b43213efa4d 100644 --- a/includes/abstracts/abstract-wc-product.php +++ b/includes/abstracts/abstract-wc-product.php @@ -967,7 +967,7 @@ class WC_Product { } else { - $price = __( 'Free!', 'woocommerce' ); + $price = '' . __( 'Free!', 'woocommerce' ) . ''; $price = apply_filters( 'woocommerce_free_price_html', $price, $this );