Plugin Directory

Changeset 3329630


Ignore:
Timestamp:
07/17/2025 11:20:37 AM (8 months ago)
Author:
cryptapi
Message:

v5.1.3 - Minor bugfixes

Location:
cryptapi-payment-gateway-for-woocommerce
Files:
2 deleted
4 edited
53 copied

Legend:

Unmodified
Added
Removed
  • cryptapi-payment-gateway-for-woocommerce/tags/5.1.3/CryptAPI.php

    r3286205 r3329630  
    44Plugin URI: https://github.com/cryptapi/woocommerce-cryptapi
    55Description: Accept cryptocurrency payments on your WooCommerce website
    6 Version: 5.1.2
     6Version: 5.1.3
    77Requires at least: 5.8
    8 Tested up to: 6.8.1
     8Tested up to: 6.8.2
    99WC requires at least: 5.8
    10 WC tested up to: 9.8.3
     10WC tested up to: 10.0.2
    1111Requires PHP: 7.2
    1212Author: cryptapi
     
    1818}
    1919
    20 define('CRYPTAPI_PLUGIN_VERSION', '5.1.2');
     20define('CRYPTAPI_PLUGIN_VERSION', '5.1.3');
    2121define('CRYPTAPI_PLUGIN_PATH', plugin_dir_path(__FILE__));
    2222define('CRYPTAPI_PLUGIN_URL', plugin_dir_url(__FILE__));
     
    3737    if (file_exists($file)) {
    3838        require $file;
     39    }
     40});
     41
     42add_action('init', function () {
     43    $plugin_dir = plugin_dir_path(__FILE__);
     44    $mo_file_path = $plugin_dir . 'languages/cryptapi-payment-gateway-for-woocommerce-' . get_locale() . '.mo';
     45
     46    if (file_exists($mo_file_path)) {
     47        load_textdomain('cryptapi', $mo_file_path);
    3948    }
    4049});
  • cryptapi-payment-gateway-for-woocommerce/tags/5.1.3/Initialize.php

    r3211174 r3329630  
    88    public function initialize()
    99    {
    10         add_action('init', [$this, 'load_textdomain']);
    1110        add_action('init', [$this, 'schedule_cron_job']);
    12     }
    13 
    14     public function load_textdomain()
    15     {
    16         $plugin_dir = plugin_dir_path(__FILE__);
    17         $mo_file_path = $plugin_dir . '../languages/cryptapi-payment-gateway-for-woocommerce-' . get_locale() . '.mo';
    18 
    19         if (file_exists($mo_file_path)) {
    20             load_textdomain('cryptapi', $mo_file_path);
    21         }
    2211    }
    2312
  • cryptapi-payment-gateway-for-woocommerce/tags/5.1.3/README.md

    r3286205 r3329630  
    415415* Minor bugfixes
    416416
     417#### 5.1.3
     418* Minor bugfixes
     419
    417420### Upgrade Notice
    418421#### 4.3
  • cryptapi-payment-gateway-for-woocommerce/tags/5.1.3/readme.txt

    r3286205 r3329630  
    33Tags: crypto payments, woocommerce, payment gateway, crypto, payment, pay with crypto, payment request, bitcoin, bnb, usdt, ethereum, litecoin, bitcoin cash, shib, doge, solana
    44Requires at least: 5.8
    5 Tested up to: 6.8.1
    6 Stable tag: 5.1.2
     5Tested up to: 6.8.2
     6Stable tag: 5.1.3
    77Requires PHP: 7.2
    88WC requires at least: 5.8
    9 WC tested up to: 9.8.3
     9WC tested up to: 10.0.2
    1010License: MIT
    1111
     
    413413* Minor bugfixes
    414414
     415= 5.1.3 =
     416* Minor bugfixes
     417
    415418== Upgrade Notice ==
    416419
  • cryptapi-payment-gateway-for-woocommerce/trunk/CryptAPI.php

    r3286205 r3329630  
    44Plugin URI: https://github.com/cryptapi/woocommerce-cryptapi
    55Description: Accept cryptocurrency payments on your WooCommerce website
    6 Version: 5.1.2
     6Version: 5.1.3
    77Requires at least: 5.8
    8 Tested up to: 6.8.1
     8Tested up to: 6.8.2
    99WC requires at least: 5.8
    10 WC tested up to: 9.8.3
     10WC tested up to: 10.0.2
    1111Requires PHP: 7.2
    1212Author: cryptapi
     
    1818}
    1919
    20 define('CRYPTAPI_PLUGIN_VERSION', '5.1.2');
     20define('CRYPTAPI_PLUGIN_VERSION', '5.1.3');
    2121define('CRYPTAPI_PLUGIN_PATH', plugin_dir_path(__FILE__));
    2222define('CRYPTAPI_PLUGIN_URL', plugin_dir_url(__FILE__));
     
    3737    if (file_exists($file)) {
    3838        require $file;
     39    }
     40});
     41
     42add_action('init', function () {
     43    $plugin_dir = plugin_dir_path(__FILE__);
     44    $mo_file_path = $plugin_dir . 'languages/cryptapi-payment-gateway-for-woocommerce-' . get_locale() . '.mo';
     45
     46    if (file_exists($mo_file_path)) {
     47        load_textdomain('cryptapi', $mo_file_path);
    3948    }
    4049});
  • cryptapi-payment-gateway-for-woocommerce/trunk/Initialize.php

    r3211174 r3329630  
    88    public function initialize()
    99    {
    10         add_action('init', [$this, 'load_textdomain']);
    1110        add_action('init', [$this, 'schedule_cron_job']);
    12     }
    13 
    14     public function load_textdomain()
    15     {
    16         $plugin_dir = plugin_dir_path(__FILE__);
    17         $mo_file_path = $plugin_dir . '../languages/cryptapi-payment-gateway-for-woocommerce-' . get_locale() . '.mo';
    18 
    19         if (file_exists($mo_file_path)) {
    20             load_textdomain('cryptapi', $mo_file_path);
    21         }
    2211    }
    2312
  • cryptapi-payment-gateway-for-woocommerce/trunk/README.md

    r3286205 r3329630  
    415415* Minor bugfixes
    416416
     417#### 5.1.3
     418* Minor bugfixes
     419
    417420### Upgrade Notice
    418421#### 4.3
  • cryptapi-payment-gateway-for-woocommerce/trunk/readme.txt

    r3286205 r3329630  
    33Tags: crypto payments, woocommerce, payment gateway, crypto, payment, pay with crypto, payment request, bitcoin, bnb, usdt, ethereum, litecoin, bitcoin cash, shib, doge, solana
    44Requires at least: 5.8
    5 Tested up to: 6.8.1
    6 Stable tag: 5.1.2
     5Tested up to: 6.8.2
     6Stable tag: 5.1.3
    77Requires PHP: 7.2
    88WC requires at least: 5.8
    9 WC tested up to: 9.8.3
     9WC tested up to: 10.0.2
    1010License: MIT
    1111
     
    413413* Minor bugfixes
    414414
     415= 5.1.3 =
     416* Minor bugfixes
     417
    415418== Upgrade Notice ==
    416419
Note: See TracChangeset for help on using the changeset viewer.