Changeset 3298541
- Timestamp:
- 05/22/2025 08:08:28 AM (11 months ago)
- Location:
- woocommerce-all-currencies/trunk
- Files:
-
- 3 edited
-
includes/class-wc-currencies-core.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
woocommerce-all-currencies.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-all-currencies/trunk/includes/class-wc-currencies-core.php
r2938956 r3298541 3 3 * WooCommerce All Currencies - Core 4 4 * 5 * @version 2.4. 25 * @version 2.4.4 6 6 * @since 2.0.0 7 7 * @author Algoritmika Ltd. … … 36 36 * language_shortcode. 37 37 * 38 * @version 2. 2.138 * @version 2.4.4 39 39 * @since 2.2.1 40 40 */ … … 42 42 // E.g.: `[alg_wcac_lang lang="EN,DE" lang_symbol="$" not_lang_symbol="USD"]` 43 43 if ( isset( $atts['lang_symbol'] ) && isset( $atts['not_lang_symbol'] ) && ! empty( $atts['lang'] ) ) { 44 return ( ! defined( 'ICL_LANGUAGE_CODE' ) || ! in_array( strtolower( ICL_LANGUAGE_CODE ), array_map( 'trim', explode( ',', strtolower( $atts['lang'] ) ) ) ) ) ? 45 $atts['not_lang_symbol'] : $atts['lang_symbol']; 44 return ( ! defined( 'ICL_LANGUAGE_CODE' ) || ! in_array( strtolower( ICL_LANGUAGE_CODE ), array_map( 'trim', explode( ',', strtolower( $atts['lang'] ) ) ) ) ) 45 ? esc_html( $atts['not_lang_symbol'] ) 46 : esc_html( $atts['lang_symbol'] ); 46 47 } 47 48 // E.g.: `[alg_wcac_lang lang="EN,DE"]$[/alg_wcac_lang][alg_wcac_lang not_lang="EN,DE"]USD[/alg_wcac_lang]` -
woocommerce-all-currencies/trunk/readme.txt
r3143965 r3298541 3 3 Tags: woocommerce, currency, currencies, cryptocurrency, cryptocurrencies, woo commerce 4 4 Requires at least: 4.4 5 Tested up to: 6. 66 Stable tag: 2.4. 35 Tested up to: 6.8 6 Stable tag: 2.4.4 7 7 License: GNU General Public License v3.0 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 40 40 41 41 == Changelog == 42 43 = 2.4.4 - 2025-05-22 = 44 * FIX: PHP notice. 42 45 43 46 = 2.4.3 - 2024-08-29 = -
woocommerce-all-currencies/trunk/woocommerce-all-currencies.php
r3143965 r3298541 4 4 Plugin URI: https://wpwham.com/products/all-currencies-for-woocommerce/ 5 5 Description: Add all countries currencies and cryptocurrencies to WooCommerce. 6 Version: 2.4. 36 Version: 2.4.4 7 7 Author: WP Wham 8 8 Author URI: https://wpwham.com 9 9 Text Domain: woocommerce-all-currencies 10 10 Domain Path: /langs 11 Copyright: © 2018-202 4WP Wham. All rights reserved.11 Copyright: © 2018-2025 WP Wham. All rights reserved. 12 12 License: GNU General Public License v3.0 13 13 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 48 48 * Main Alg_WC_All_Currencies Class 49 49 * 50 * @version 2.4. 350 * @version 2.4.4 51 51 * @class Alg_WC_All_Currencies 52 52 */ … … 64 64 * @since 2.1.0 65 65 */ 66 public $version = '2.4. 3';66 public $version = '2.4.4'; 67 67 68 68 /** … … 88 88 * Alg_WC_All_Currencies Constructor. 89 89 * 90 * @version 2. 3.790 * @version 2.4.4 91 91 */ 92 92 function __construct() { 93 93 94 94 // Set up localisation 95 load_plugin_textdomain( 'woocommerce-all-currencies', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/');95 add_action( 'init', array( $this, 'load_localization' ) ); 96 96 97 97 // Include required files … … 115 115 } 116 116 } 117 } 118 119 /** 120 * @since 2.4.4 121 */ 122 public function load_localization() { 123 load_plugin_textdomain( 'woocommerce-all-currencies', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/' ); 117 124 } 118 125
Note: See TracChangeset
for help on using the changeset viewer.