Plugin Directory

Changeset 3386524


Ignore:
Timestamp:
10/29/2025 03:12:05 PM (5 months ago)
Author:
fantasyworld
Message:

update 3.5.15

Location:
ry-woocommerce-tools/trunk
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • ry-woocommerce-tools/trunk/includes/update.php

    r3386501 r3386524  
    117117        }
    118118
    119         if (version_compare($now_version, '3.5.14', '<')) {
    120             RY_WT::update_option('version', '3.5.14', true);
     119        if (version_compare($now_version, '3.5.15', '<')) {
     120            RY_WT::update_option('version', '3.5.15', true);
    121121        }
    122122    }
  • ry-woocommerce-tools/trunk/readme.txt

    r3386501 r3386524  
    66Requires PHP: 8.0
    77Tested up to: 6.8
    8 Stable tag: 3.5.14
     8Stable tag: 3.5.15
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.txt
     
    4141== Changelog ==
    4242
    43 = 3.5.14 - 2025-10-29 =
     43= 3.5.15 - 2025-10-29 =
    4444* 修正 - 在部份情況下可能金流設定可能出現 PHP 錯誤。
    4545
  • ry-woocommerce-tools/trunk/ry-woocommerce-tools.php

    r3386501 r3386524  
    55 * Plugin URI: https://ry-plugin.com/ry-woocommerce-tools
    66 * Description: WooCommerce paymet and shipping tools
    7  * Version: 3.5.14
     7 * Version: 3.5.15
    88 * Requires at least: 6.6
    99 * Requires PHP: 8.0
     
    2222function_exists('plugin_dir_url') or exit('No direct script access allowed');
    2323
    24 define('RY_WT_VERSION', '3.5.14');
     24define('RY_WT_VERSION', '3.5.15');
    2525define('RY_WT_PLUGIN_URL', plugin_dir_url(__FILE__));
    2626define('RY_WT_PLUGIN_DIR', plugin_dir_path(__FILE__));
  • ry-woocommerce-tools/trunk/woocommerce/abstracts/abstract-wc-payment-gateway.php

    r3386501 r3386524  
    1515        $this->init_settings();
    1616
    17         $this->title = $this->settings['title'] ?: $this->method_title;
    18         $this->description = $this->settings['description'] ?: '';
    19         $this->min_amount = (int) ($this->settings['min_amount'] ?: 0);
    20         $this->max_amount = (int) ($this->settings['max_amount'] ?: 0);
     17        $this->title = $this->settings['title'] ?? '';
     18        if (empty($this->title)) {
     19            $this->title = $this->method_title;
     20        }
     21        $this->description = $this->settings['description'] ?? '';
     22        $this->min_amount = (int) ($this->settings['min_amount'] ?? 0);
     23        $this->max_amount = (int) ($this->settings['max_amount'] ?? 0);
    2124
    2225        add_action('woocommerce_admin_order_data_after_billing_address', [$this, 'admin_payment_info']);
  • ry-woocommerce-tools/trunk/woocommerce/gateways/ecpay/gateway-atm.php

    r3386206 r3386524  
    2222        parent::__construct();
    2323
    24         $this->expire_date = (int) ($this->settings['expire_date'] ?: 3);
     24        $this->expire_date = (int) ($this->settings['expire_date'] ?? 3);
    2525
    2626        add_filter('ry_admin_payment_info-ry_ecpay_atm', [$this, 'show_payment_info'], 10, 2);
  • ry-woocommerce-tools/trunk/woocommerce/gateways/ecpay/gateway-barcode.php

    r3386206 r3386524  
    2222        parent::__construct();
    2323
    24         $this->expire_date = (int) ($this->settings['expire_date'] ?: 7);
     24        $this->expire_date = (int) ($this->settings['expire_date'] ?? 7);
    2525
    2626        add_filter('ry_admin_payment_info-ry_ecpay_barcode', [$this, 'show_payment_info'], 10, 2);
  • ry-woocommerce-tools/trunk/woocommerce/gateways/ecpay/gateway-credit-installment.php

    r3386206 r3386524  
    2424        parent::__construct();
    2525
    26         $this->number_of_periods = $this->settings['number_of_periods'] ?: [];
     26        $this->number_of_periods = (array) ($this->settings['number_of_periods'] ?? []);
     27        $this->number_of_periods = array_filter(array_map('intval', $this->number_of_periods));
    2728    }
    2829
  • ry-woocommerce-tools/trunk/woocommerce/gateways/ecpay/gateway-cvs.php

    r3386206 r3386524  
    2222        parent::__construct();
    2323
    24         $this->expire_date = (int) ($this->settings['expire_date'] ?: 10080);
     24        $this->expire_date = (int) ($this->settings['expire_date'] ?? 10080);
    2525
    2626        add_filter('ry_admin_payment_info-ry_ecpay_cvs', [$this, 'show_payment_info'], 10, 2);
  • ry-woocommerce-tools/trunk/woocommerce/gateways/newebpay/gateway-atm.php

    r3386206 r3386524  
    1818        parent::__construct();
    1919
    20         $this->expire_date = (int) ($this->settings['expire_date'] ?: 7);
     20        $this->expire_date = (int) ($this->settings['expire_date'] ?? 7);
    2121
    2222        add_filter('ry_admin_payment_info-ry_newebpay_atm', [$this, 'show_payment_info'], 10, 2);
  • ry-woocommerce-tools/trunk/woocommerce/gateways/newebpay/gateway-barcode.php

    r3386206 r3386524  
    2222        parent::__construct();
    2323
    24         $this->expire_date = (int) ($this->settings['expire_date'] ?: 7);
     24        $this->expire_date = (int) ($this->settings['expire_date'] ?? 7);
    2525
    2626        add_filter('ry_admin_payment_info-ry_newebpay_barcode', [$this, 'show_payment_info'], 10, 2);
  • ry-woocommerce-tools/trunk/woocommerce/gateways/newebpay/gateway-credit-installment.php

    r3386206 r3386524  
    55    public const Payment_Type = 'InstFlag';
    66
    7     public $number_of_periods = '';
     7    public $number_of_periods = [];
    88
    99    public function __construct()
     
    2020        parent::__construct();
    2121
    22         $this->number_of_periods = $this->settings['number_of_periods'] ?: [];
     22        $this->number_of_periods = (array) ($this->settings['number_of_periods'] ?? []);
     23        $this->number_of_periods = array_filter(array_map('intval', $this->number_of_periods));
    2324    }
    2425
  • ry-woocommerce-tools/trunk/woocommerce/gateways/newebpay/gateway-cvs.php

    r3386206 r3386524  
    2222        parent::__construct();
    2323
    24         $this->expire_date = (int) ($this->settings['expire_date'] ?: 7);
     24        $this->expire_date = (int) ($this->settings['expire_date'] ?? 7);
    2525
    2626        add_filter('ry_admin_payment_info-ry_newebpay_cvs', [$this, 'show_payment_info'], 10, 2);
  • ry-woocommerce-tools/trunk/woocommerce/gateways/smilepay/gateway-atm.php

    r3386206 r3386524  
    2323        parent::__construct();
    2424
    25         $this->expire_date = (int) ($this->settings['expire_date'] ?: 3);
     25        $this->expire_date = (int) ($this->settings['expire_date'] ?? 3);
    2626
    2727        add_filter('ry_admin_payment_info-ry_smilepay_atm', [$this, 'show_payment_info'], 10, 2);
  • ry-woocommerce-tools/trunk/woocommerce/gateways/smilepay/gateway-barcode.php

    r3386206 r3386524  
    2323        parent::__construct();
    2424
    25         $this->expire_date = (int) ($this->settings['expire_date'] ?: 7);
     25        $this->expire_date = (int) ($this->settings['expire_date'] ?? 7);
    2626
    2727        add_filter('ry_admin_payment_info-ry_smilepay_barcode', [$this, 'show_payment_info'], 10, 2);
  • ry-woocommerce-tools/trunk/woocommerce/gateways/smilepay/gateway-cvs-711.php

    r3386206 r3386524  
    2323        parent::__construct();
    2424
    25         $this->expire_date = (int) ($this->settings['expire_date'] ?: 4320);
     25        $this->expire_date = (int) ($this->settings['expire_date'] ?? 4320);
    2626
    2727        add_filter('ry_admin_payment_info-ry_smilepay_cvs_711', [$this, 'show_payment_info'], 10, 2);
  • ry-woocommerce-tools/trunk/woocommerce/gateways/smilepay/gateway-cvs-fami.php

    r3386206 r3386524  
    2323        parent::__construct();
    2424
    25         $this->expire_date = (int) ($this->settings['expire_date'] ?: 4320);
     25        $this->expire_date = (int) ($this->settings['expire_date'] ?? 4320);
    2626
    2727        add_filter('ry_admin_payment_info-ry_smilepay_cvs_fami', [$this, 'show_payment_info'], 10, 2);
  • ry-woocommerce-tools/trunk/woocommerce/gateways/smilepay/gateway-webatm.php

    r3386206 r3386524  
    2222        parent::__construct();
    2323
    24         $this->expire_date = (int) ($this->settings['expire_date'] ?: 7);
     24        $this->expire_date = (int) ($this->settings['expire_date'] ?? 7);
    2525    }
    2626}
Note: See TracChangeset for help on using the changeset viewer.