function wpsc_convert_currency($amt, $from, $to) { if (empty($from) || empty($to)) { return $amt; } $rate = _wpsc_get_exchange_rate($from, $to); if (is_wp_error($rate)) { return $rate; } return $rate * $amt; }
function wpsc_get_exchange_rate($from, $to) { _wpsc_deprecated_function(__FUNCTION__, '3.8.13'); return _wpsc_get_exchange_rate($from, $to); }