Plugin Directory

Changeset 3340235


Ignore:
Timestamp:
08/06/2025 09:25:42 AM (8 months ago)
Author:
clonable
Message:

Version 2.6.1

Location:
clonable
Files:
123 added
11 edited

Legend:

Unmodified
Added
Removed
  • clonable/trunk/clonable-wp.php

    r3338869 r3340235  
    55Description: Official plugin for improving your clones made with Clonable.
    66Plugin URI: https://kb.clonable.net/en/introduction/getting-started/wordpress#de-clonable-plug-in-downloaden
    7 Version: 2.6.0
     7Version: 2.6.1
    88Author: Clonable BV
    99Author URI: https://www.clonable.net
     
    115115
    116116define('CLONABLE_NAME', 'Clonable');
    117 define('CLONABLE_VERSION', '2.6.0');
     117define('CLONABLE_VERSION', '2.6.1');
    118118
    119119if (defined('WP_CLI') && WP_CLI) {
  • clonable/trunk/readme-da_DK.txt

    r3338869 r3340235  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.6.0
     7Stable tag: 2.6.1
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.6.1
     35Fixed a warning with parsing of custom currencies.
     36
    3437v2.6.0
    3538Added ability to override currencies for specific target regions.
  • clonable/trunk/readme-de_DE.txt

    r3338869 r3340235  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.6.0
     7Stable tag: 2.6.1
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.6.1
     35Fixed a warning with parsing of custom currencies.
     36
    3437v2.6.0
    3538Added ability to override currencies for specific target regions.
  • clonable/trunk/readme-es_ES.txt

    r3338869 r3340235  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.6.0
     7Stable tag: 2.6.1
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.6.1
     35Fixed a warning with parsing of custom currencies.
     36
    3437v2.6.0
    3538Added ability to override currencies for specific target regions.
  • clonable/trunk/readme-fr_FR.txt

    r3338869 r3340235  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.6.0
     7Stable tag: 2.6.1
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.6.1
     35Fixed a warning with parsing of custom currencies.
     36
    3437v2.6.0
    3538Added ability to override currencies for specific target regions.
  • clonable/trunk/readme-it_IT.txt

    r3338869 r3340235  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.6.0
     7Stable tag: 2.6.1
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.6.1
     35Fixed a warning with parsing of custom currencies.
     36
    3437v2.6.0
    3538Added ability to override currencies for specific target regions.
  • clonable/trunk/readme-nb_NO.txt

    r3338869 r3340235  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.6.0
     7Stable tag: 2.6.1
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.6.1
     35Fixed a warning with parsing of custom currencies.
     36
    3437v2.6.0
    3538Added ability to override currencies for specific target regions.
  • clonable/trunk/readme-nl_NL.txt

    r3338869 r3340235  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.6.0
     7Stable tag: 2.6.1
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.6.1
     35Waarschuwing opgelost bij het parsen van valuta's
     36
    3437v2.6.0
    3538De mogelijkheid toegevoegd om valuta's te overschijven voor specifieke regio's.
  • clonable/trunk/readme-sv_SE.txt

    r3338869 r3340235  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.6.0
     7Stable tag: 2.6.1
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.6.1
     35Fixed a warning with parsing of custom currencies.
     36
    3437v2.6.0
    3538Added ability to override currencies for specific target regions.
  • clonable/trunk/readme.txt

    r3338869 r3340235  
    55Tested up to: 6.8.2
    66Requires PHP: 7.2
    7 Stable tag: 2.6.0
     7Stable tag: 2.6.1
    88License: GPL v2 or later
    99
     
    3232
    3333== Changelog ==
     34v2.6.1
     35Fixed a warning with parsing of custom currencies.
     36
    3437v2.6.0
    3538Added ability to override currencies for specific target regions.
  • clonable/trunk/services/MultiCurrencyService.php

    r3338869 r3340235  
    33namespace Clonable\Services;
    44
     5use Clonable\Helpers\Functions;
     6use Clonable\Helpers\Json;
    57use Clonable\Helpers\MultiCurrency;
    68use Clonable\Models\ClonableWooCommerce;
     
    6264            return MultiCurrency::get_currency_by_region($target_region);
    6365        } else {
    64             foreach ($custom_currencies as $currency) {
    65                 if ($currency['target_region'] === $target_region) {
     66            $currency_data = Json::handle_input($custom_currencies);
     67            foreach ($currency_data as $currency) {
     68                if ($currency->target_region === $target_region) {
    6669                    // If a custom currency has been defined, return that one instead of the custom one
    67                     return $currency['currency'];
     70                    return $currency->currency;
    6871                }
    6972            }
Note: See TracChangeset for help on using the changeset viewer.