Merge pull request #14849 from franticpsyx/fix-get-price-html-from-to-fallback

[3.0] Incorrect use of `wc_format_price_range` in `get_price_html_from_to`
This commit is contained in:
Claudio Sanches 2017-05-03 17:40:40 -03:00 committed by GitHub
commit 12bd41dd4b
1 changed files with 2 additions and 2 deletions

View File

@ -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 );
}
/**