Changeset 3150596
- Timestamp:
- 09/12/2024 08:06:29 AM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-currency-switcher/trunk/classes/woocs.php
r3148508 r3150596 4602 4602 $custom_prices = array_unique($custom_prices); 4603 4603 foreach ($custom_prices as $p) { 4604 if (!isset($currencies[$p['currency']])) { 4605 $p['currency'] = $this->default_currency; 4606 } 4607 4604 4605 $curr = sanitize_key($p['currency']); 4606 4607 //check for currency existance 4608 if (!isset($currencies[$curr])) { 4609 $curr = $this->default_currency; 4610 } 4611 4608 4612 $result[$p['value']] = do_shortcode("[woocs_show_custom_price " 4609 . "value=" . sanitize_text_field($p['value'])4613 . "value=" . floatval($p['value']) 4610 4614 . " decimals=" . intval($p['decimals']) 4611 . " currency=" . sanitize_text_field($p['currency'])4615 . " currency=" . $curr 4612 4616 . " ]"); 4613 4617 }
Note: See TracChangeset
for help on using the changeset viewer.