Plugin Directory

Changeset 3241166


Ignore:
Timestamp:
02/16/2025 03:53:40 AM (11 months ago)
Author:
iyzico
Message:

+new version 3.5.16

Location:
iyzico-woocommerce
Files:
854 added
3 edited

Legend:

Unmodified
Added
Removed
  • iyzico-woocommerce/trunk/includes/Core/Plugin.php

    r3241153 r3241166  
    1313use Iyzico\IyzipayWoocommerce\Pwi\Pwi;
    1414use Plugin_Upgrader;
     15use Exception;
     16
    1517
    1618class Plugin {
     
    128130    {
    129131        $logger = new Logger();
    130         $current_db_version = IYZICO_DB_VERSION;
    131         $old_db_version = get_option('iyzico_db_version', '0.0.0');
    132132
    133         $logger->info('Current DB Version: ' . $current_db_version);
    134         $logger->info('Old DB Version: ' . $old_db_version);
    135 
    136         if (version_compare($current_db_version, $old_db_version, '>')) {
     133        try {
    137134            DatabaseManager::updateTables();
    138135            update_option('iyzico_db_version', IYZICO_DB_VERSION);
     136            $logger->info('Database updated to version: ' . IYZICO_DB_VERSION);
     137        } catch (Exception $e) {
     138            $logger->error('Database update failed: ' . $e->getMessage());
    139139        }
    140140    }
    141141
    142     public function upgrader_process_complete($upgrader, $hook_extra)
     142    public static function upgrader_process_complete($upgrader, $hook_extra)
    143143    {
     144        if ($upgrader instanceof Plugin_Upgrader &&
     145            ((false === $upgrader->bulk && array_key_exists('plugin', $hook_extra) && IYZICO_PLUGIN_BASENAME === $hook_extra['plugin']) ||
     146                (true === $upgrader->bulk && array_key_exists('plugins', $hook_extra) && in_array(IYZICO_PLUGIN_BASENAME, $hook_extra['plugins'], true)))) {
    144147
    145         if ($upgrader instanceof Plugin_Upgrader && false === $upgrader->bulk && array_key_exists('plugin', $hook_extra) && IYZICO_PLUGIN_BASENAME === $hook_extra['plugin']) {
    146             call_user_func(array($this, 'databaseUpdate'));
    147         }
    148 
    149         if ($upgrader instanceof Plugin_Upgrader && true === $upgrader->bulk && array_key_exists('plugins', $hook_extra) && in_array(IYZICO_PLUGIN_BASENAME, $hook_extra['plugins'], true)) {
    150             call_user_func(array($this, 'databaseUpdate'));
     148            self::databaseUpdate();
    151149        }
    152150    }
  • iyzico-woocommerce/trunk/readme.txt

    r3241159 r3241166  
    33Tags: payment, ecommerce, credit card, checkout woocommerce, iyzico
    44Tested up to: 6.6.2
    5 Stable tag: 3.5.15
     5Stable tag: 3.5.16
    66Requires at least: 6.6.2
    77Requires PHP: 8.2.0
     
    5858
    5959== Changelog ==
     60
     61= 3.5.16 =
     62  * Fix : Table migration
    6063
    6164= 3.5.15 =
     
    237240== Changelog ==
    238241
     242= 3.5.16 =
     243  * Fix : Table migration
     244
    239245= 3.5.15 =
    240246  * Fix : Table migration
  • iyzico-woocommerce/trunk/woocommerce-gateway-iyzico.php

    r3241159 r3241166  
    1313 * Plugin URI: https://wordpress.org/plugins/iyzico-woocommerce
    1414 * Description: iyzico Payment Gateway for WooCommerce.
    15  * Version: 3.5.15
     15 * Version: 3.5.16
    1616 * Requires at least: 6.6.2
    1717 * WC requires at least: 9.3.3
     
    3737 * These constants are used to define the plugin version, base file, path, url and language path.
    3838 */
    39 const IYZICO_PLUGIN_VERSION = '3.5.15';
    40 const IYZICO_DB_VERSION = '1.0.3';
     39const IYZICO_PLUGIN_VERSION = '3.5.16';
     40const IYZICO_DB_VERSION = '1.0.5';
    4141const PLUGIN_BASEFILE = __FILE__;
    4242
     
    6969add_action('plugins_loaded', ['\Iyzico\IyzipayWoocommerce\Core\Plugin', 'init']);
    7070add_action('upgrader_process_complete', ['\Iyzico\IyzipayWoocommerce\Core\Plugin', 'upgrader_process_complete'], 1, 2);
    71 add_action('admin_init', ['\Iyzico\IyzipayWoocommerce\Core\Plugin', 'databaseUpdate']);
Note: See TracChangeset for help on using the changeset viewer.