From faa53edc2bdfd76572d5529bfc8d5522a519a7cf Mon Sep 17 00:00:00 2001 From: Manos Psychogyiopoulos Date: Wed, 3 May 2017 15:13:29 +0300 Subject: [PATCH] Call `wc_format_sale_price` in `get_price_html_from_to` --- includes/legacy/abstract-wc-legacy-product.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/legacy/abstract-wc-legacy-product.php b/includes/legacy/abstract-wc-legacy-product.php index a2ddfca33e8..dc5a1a1e8c8 100644 --- a/includes/legacy/abstract-wc-legacy-product.php +++ b/includes/legacy/abstract-wc-legacy-product.php @@ -278,8 +278,8 @@ abstract class WC_Abstract_Legacy_Product extends WC_Data { * @return string */ public function get_price_html_from_to( $from, $to ) { - wc_deprecated_function( 'WC_Product::get_price_html_from_to', '3.0', 'wc_format_price_range' ); - return apply_filters( 'woocommerce_get_price_html_from_to', wc_format_price_range( $from, $to ), $from, $to, $this ); + wc_deprecated_function( 'WC_Product::get_price_html_from_to', '3.0', 'wc_format_sale_price' ); + return apply_filters( 'woocommerce_get_price_html_from_to', wc_format_sale_price( $from, $to ), $from, $to, $this ); } /**