Plugin Directory

Changeset 3307208


Ignore:
Timestamp:
06/05/2025 06:09:16 PM (10 months ago)
Author:
monei
Message:

Release 6.3.6

Location:
monei/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • monei/trunk/changelog.txt

    r3306462 r3307208  
    11*** MONEI Payments for WooCommerce ***
     2
     32025-06-05 - version 6.3.6
     4* Fix - Remove old _payment_method transients on activation and update
    25
    362025-06-04 - version 6.3.5
  • monei/trunk/class-woocommerce-gateway-monei.php

    r3306462 r3307208  
    66 * @category Core
    77 * @package  Woocommerce_Gateway_Monei
    8  * @version  6.3.5
     8 * @version  6.3.6
    99 */
    1010
     
    2626         * @var string
    2727         */
    28         public $version = '6.3.5';
     28        public $version = '6.3.6';
    2929
    3030        /**
  • monei/trunk/includes/addons/class-wc-monei-addons-redirect-hooks.php

    r3287742 r3307208  
    2121
    2222    private MoneiPaymentServices $moneiPaymentServices;
     23    private SubscriptionService $subscriptionService;
    2324
    24     /**
     25    /**
    2526     * Hooks on redirects.
    2627     */
  • monei/trunk/readme.txt

    r3306462 r3307208  
    44Requires at least: 5.0
    55Tested up to: 6.8
    6 Stable tag: 6.3.5
     6Stable tag: 6.3.6
    77Requires PHP: 7.2
    88License: GPLv2 or later
     
    104104== Changelog ==
    105105
     1062025-06-05 - version 6.3.6
     107* Fix - Remove old _payment_method transients on activation and update
     108
    1061092025-06-04 - version 6.3.5
    107110* Fix - Remove Cofidis payment method as is not supported
  • monei/trunk/vendor/composer/installed.php

    r3306462 r3307208  
    22    'root' => array(
    33        'name' => '__root__',
    4         'pretty_version' => '6.3.5',
    5         'version' => '6.3.5.0',
    6         'reference' => 'ba2437adc793859b041ba92a33666ffad14990b5',
     4        'pretty_version' => 'dev-master',
     5        'version' => 'dev-master',
     6        'reference' => '04806721f8aace5b73ee0c3aab0bf1c06f99ee40',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        '__root__' => array(
    14             'pretty_version' => '6.3.5',
    15             'version' => '6.3.5.0',
    16             'reference' => 'ba2437adc793859b041ba92a33666ffad14990b5',
     14            'pretty_version' => 'dev-master',
     15            'version' => 'dev-master',
     16            'reference' => '04806721f8aace5b73ee0c3aab0bf1c06f99ee40',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • monei/trunk/woocommerce-gateway-monei.php

    r3306462 r3307208  
    1111 * Plugin URI: https://wordpress.org/plugins/monei/
    1212 * Description: Accept Card, Apple Pay, Google Pay, Bizum, PayPal and many more payment methods in your store.
    13  * Version: 6.3.5
     13 * Version: 6.3.6
    1414 * Author: MONEI
    1515 * Author URI: https://www.monei.com/
     
    4343    }
    4444} );
     45/**
     46 * Remove transients for payment methods on activation
     47 *
     48 * @return void
     49 */
     50function delete_payment_methods_transients() {
     51    global $wpdb;
     52
     53    // Delete transients that match the pattern
     54    $result = $wpdb->query(
     55        "DELETE FROM {$wpdb->options}
     56         WHERE option_name LIKE '_transient_payment_methods_%'
     57         OR option_name LIKE '_transient_timeout_payment_methods_%'"
     58    );
     59    if ($result === false) {
     60        error_log('MONEI: Failed to delete payment method transients');
     61    }
     62}
     63
     64/**
     65 * Remove transients for payment methods on update of the plugin
     66 *
     67 * @param $upgrader_object
     68 * @param $options
     69 * @return void
     70 */
     71function delete_payment_methods_transients_on_update($upgrader_object, $options) {
     72    if ($options['action'] == 'update' && $options['type'] == 'plugin') {
     73        if (isset($options['plugins'])) {
     74            foreach ($options['plugins'] as $plugin) {
     75                if ($plugin == plugin_basename(__FILE__)) {
     76                    delete_payment_methods_transients();
     77                    break;
     78                }
     79            }
     80        }
     81    }
     82}
     83
     84register_activation_hook(__FILE__, 'delete_payment_methods_transients');
     85
     86add_action('upgrader_process_complete', 'delete_payment_methods_transients_on_update', 10, 2);
    4587
    4688require_once 'class-woocommerce-gateway-monei.php';
Note: See TracChangeset for help on using the changeset viewer.