Plugin Directory

Changeset 3241153


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

+new version 3.5.14

Location:
iyzico-woocommerce
Files:
854 added
3 edited

Legend:

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

    r3241150 r3241153  
    126126
    127127    public static function databaseUpdate()
    128     {
    129         $current_db_version = IYZICO_DB_VERSION;
    130         $old_db_version = get_option('iyzico_db_version', '0.0.0');
     128    {
     129        $logger = new Logger();
     130        $current_db_version = IYZICO_DB_VERSION;
     131        $old_db_version = get_option('iyzico_db_version', '0.0.0');
    131132
    132         if (version_compare($current_db_version, $old_db_version, '>')) {
    133             DatabaseManager::updateTables();
    134             update_option('iyzico_db_version', IYZICO_DB_VERSION);
    135         }
    136     }
     133        $logger->info('Current DB Version: ' . $current_db_version);
     134        $logger->info('Old DB Version: ' . $old_db_version);
    137135
    138     public static function upgrader_process_complete($upgrader, $hook_extra)
     136        if (version_compare($current_db_version, $old_db_version, '>')) {
     137            DatabaseManager::updateTables();
     138            update_option('iyzico_db_version', IYZICO_DB_VERSION);
     139        }
     140    }
     141
     142    public function upgrader_process_complete($upgrader, $hook_extra)
    139143    {
     144
    140145        if ($upgrader instanceof Plugin_Upgrader && false === $upgrader->bulk && array_key_exists('plugin', $hook_extra) && IYZICO_PLUGIN_BASENAME === $hook_extra['plugin']) {
    141             self::databaseUpdate();
     146            call_user_func(array($this, 'databaseUpdate'));
    142147        }
    143148
    144149        if ($upgrader instanceof Plugin_Upgrader && true === $upgrader->bulk && array_key_exists('plugins', $hook_extra) && in_array(IYZICO_PLUGIN_BASENAME, $hook_extra['plugins'], true)) {
    145             self::databaseUpdate();
     150            call_user_func(array($this, 'databaseUpdate'));
    146151        }
    147152    }
  • iyzico-woocommerce/trunk/readme.txt

    r3241152 r3241153  
    33Tags: payment, ecommerce, credit card, checkout woocommerce, iyzico
    44Tested up to: 6.6.2
    5 Stable tag: 3.5.13
     5Stable tag: 3.5.14
    66Requires at least: 6.6.2
    77Requires PHP: 8.2.0
     
    5858
    5959== Changelog ==
     60
     61= 3.5.14 =
     62  * Fix : Table migration
    6063
    6164= 3.5.13 =
     
    231234== Changelog ==
    232235
     236= 3.5.14 =
     237  * Fix : Table migration
     238
    233239= 3.5.13 =
    234240  * Fix : Table migration
  • iyzico-woocommerce/trunk/woocommerce-gateway-iyzico.php

    r3241150 r3241153  
    1313 * Plugin URI: https://wordpress.org/plugins/iyzico-woocommerce
    1414 * Description: iyzico Payment Gateway for WooCommerce.
    15  * Version: 3.5.13
     15 * Version: 3.5.14
    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.13';
    40 const IYZICO_DB_VERSION = '1.0.1';
     39const IYZICO_PLUGIN_VERSION = '3.5.14';
     40const IYZICO_DB_VERSION = '1.0.2';
    4141const PLUGIN_BASEFILE = __FILE__;
    4242
Note: See TracChangeset for help on using the changeset viewer.