Plugin Directory

Changeset 3298541


Ignore:
Timestamp:
05/22/2025 08:08:28 AM (11 months ago)
Author:
wpwham
Message:

Version 2.4.4 update

Location:
woocommerce-all-currencies/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-all-currencies/trunk/includes/class-wc-currencies-core.php

    r2938956 r3298541  
    33 * WooCommerce All Currencies - Core
    44 *
    5  * @version 2.4.2
     5 * @version 2.4.4
    66 * @since   2.0.0
    77 * @author  Algoritmika Ltd.
     
    3636     * language_shortcode.
    3737     *
    38      * @version 2.2.1
     38     * @version 2.4.4
    3939     * @since   2.2.1
    4040     */
     
    4242        // E.g.: `[alg_wcac_lang lang="EN,DE" lang_symbol="$" not_lang_symbol="USD"]`
    4343        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'] );
    4647        }
    4748        // 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  
    33Tags: woocommerce, currency, currencies, cryptocurrency, cryptocurrencies, woo commerce
    44Requires at least: 4.4
    5 Tested up to: 6.6
    6 Stable tag: 2.4.3
     5Tested up to: 6.8
     6Stable tag: 2.4.4
    77License: GNU General Public License v3.0
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    4040
    4141== Changelog ==
     42
     43= 2.4.4 - 2025-05-22 =
     44* FIX: PHP notice.
    4245
    4346= 2.4.3 - 2024-08-29 =
  • woocommerce-all-currencies/trunk/woocommerce-all-currencies.php

    r3143965 r3298541  
    44Plugin URI: https://wpwham.com/products/all-currencies-for-woocommerce/
    55Description: Add all countries currencies and cryptocurrencies to WooCommerce.
    6 Version: 2.4.3
     6Version: 2.4.4
    77Author: WP Wham
    88Author URI: https://wpwham.com
    99Text Domain: woocommerce-all-currencies
    1010Domain Path: /langs
    11 Copyright: © 2018-2024 WP Wham. All rights reserved.
     11Copyright: © 2018-2025 WP Wham. All rights reserved.
    1212License: GNU General Public License v3.0
    1313License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    4848 * Main Alg_WC_All_Currencies Class
    4949 *
    50  * @version 2.4.3
     50 * @version 2.4.4
    5151 * @class   Alg_WC_All_Currencies
    5252 */
     
    6464     * @since 2.1.0
    6565     */
    66     public $version = '2.4.3';
     66    public $version = '2.4.4';
    6767
    6868    /**
     
    8888     * Alg_WC_All_Currencies Constructor.
    8989     *
    90      * @version 2.3.7
     90     * @version 2.4.4
    9191     */
    9292    function __construct() {
    9393
    9494        // Set up localisation
    95         load_plugin_textdomain( 'woocommerce-all-currencies', false, dirname( plugin_basename( __FILE__ ) ) . '/langs/' );
     95        add_action( 'init', array( $this, 'load_localization' ) );
    9696
    9797        // Include required files
     
    115115            }
    116116        }
     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/' );
    117124    }
    118125
Note: See TracChangeset for help on using the changeset viewer.