Plugin Directory

Changeset 3081925


Ignore:
Timestamp:
05/06/2024 12:30:47 PM (23 months ago)
Author:
multisafepayplugin
Message:

Update to version 6.4.2 from GitHub

Location:
multisafepay
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • multisafepay/tags/6.4.2/multisafepay.php

    r3072471 r3081925  
    55 * Plugin URI:              https://docs.multisafepay.com/docs/woocommerce
    66 * Description:             MultiSafepay Payment Plugin
    7  * Version:                 6.4.1
     7 * Version:                 6.4.2
    88 * Author:                  MultiSafepay
    99 * Author URI:              https://www.multisafepay.com
     
    1414 * Tested up to:            6.5.2
    1515 * WC requires at least:    6.0.0
    16  * WC tested up to:         8.7.0
     16 * WC tested up to:         8.8.3
    1717 * Requires PHP:            7.3
    1818 * Text Domain:             multisafepay
     
    2727 * Plugin version
    2828 */
    29 define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.4.1' );
     29define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.4.2' );
    3030
    3131/**
  • multisafepay/tags/6.4.2/readme.txt

    r3072471 r3081925  
    55Tested up to: 6.5.2
    66Requires PHP: 7.3
    7 Stable tag: 6.4.1
     7Stable tag: 6.4.2
    88License: MIT
    99
     
    128128== Upgrade Notice ==
    129129
    130 = 6.4.1 =
     130= 6.4.2 =
    1311316.x.x is a major upgrade in which the MultiSafepay payment methods are registered dynamically via an API request to MultiSafepay. If you are upgrading from 5.X.X version, after the upgrade, please navigate to the MultiSafepay settings page, and to each one of the payment methods enabled in your account, and confirm the settings in each section are set up according to your preferences.
    132132
     
    144144
    145145== Changelog ==
     146= Release Notes - WooCommerce 6.4.2 (May 6th, 2024) =
     147
     148### Fixed
     149+ PLGWOOS-922: Reduce the amount of request done to the payment-methods endpoint, from the admin
     150
    146151= Release Notes - WooCommerce 6.4.1 (Apr 17th, 2024) =
    147152
  • multisafepay/tags/6.4.2/src/Services/PaymentMethodService.php

    r2974626 r3081925  
    4444
    4545    /**
     46     *  Check if the current page is the WooCommerce settings page for payment methods
     47     *
     48     * @return bool
     49     *
     50     * @phpcs:disable WordPress.Security.NonceVerification.Recommended
     51     */
     52    public function is_settings_payments_page(): bool {
     53        $page = isset( $_GET['page'] ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : '';
     54        $tab  = isset( $_GET['tab'] ) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : '';
     55        return is_admin() && ( 'wc-settings' === $page ) && ( 'checkout' === $tab );
     56    }
     57
     58    /**
    4659     * Return an array with the information of each payment method from the API
    4760     * If the result is cached by transient api, will be returned from there,
     
    5568    public function get_multisafepay_payment_methods_from_api(): array {
    5669        $multisafepay_payment_methods_in_cache = get_transient( 'multisafepay_payment_methods' );
    57         if ( false !== $multisafepay_payment_methods_in_cache && ! is_admin() ) {
     70        $admin_area                            = $this->is_settings_payments_page();
     71
     72        if ( ( false !== $multisafepay_payment_methods_in_cache ) && ! $admin_area ) {
    5873            return $multisafepay_payment_methods_in_cache;
    5974        }
  • multisafepay/tags/6.4.2/vendor/composer/installed.php

    r3072471 r3081925  
    22    'root' => array(
    33        'name' => 'multisafepay/woocommerce',
    4         'pretty_version' => '6.4.1',
    5         'version' => '6.4.1.0',
    6         'reference' => '4995acd31e5b4e25d7e780abe83b061a18a76303',
     4        'pretty_version' => '6.4.2',
     5        'version' => '6.4.2.0',
     6        'reference' => '6c4aa656443aa7957a39274da0a5d04a0d48e8b6',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'multisafepay/woocommerce' => array(
    23             'pretty_version' => '6.4.1',
    24             'version' => '6.4.1.0',
    25             'reference' => '4995acd31e5b4e25d7e780abe83b061a18a76303',
     23            'pretty_version' => '6.4.2',
     24            'version' => '6.4.2.0',
     25            'reference' => '6c4aa656443aa7957a39274da0a5d04a0d48e8b6',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
  • multisafepay/trunk/multisafepay.php

    r3072471 r3081925  
    55 * Plugin URI:              https://docs.multisafepay.com/docs/woocommerce
    66 * Description:             MultiSafepay Payment Plugin
    7  * Version:                 6.4.1
     7 * Version:                 6.4.2
    88 * Author:                  MultiSafepay
    99 * Author URI:              https://www.multisafepay.com
     
    1414 * Tested up to:            6.5.2
    1515 * WC requires at least:    6.0.0
    16  * WC tested up to:         8.7.0
     16 * WC tested up to:         8.8.3
    1717 * Requires PHP:            7.3
    1818 * Text Domain:             multisafepay
     
    2727 * Plugin version
    2828 */
    29 define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.4.1' );
     29define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.4.2' );
    3030
    3131/**
  • multisafepay/trunk/readme.txt

    r3072471 r3081925  
    55Tested up to: 6.5.2
    66Requires PHP: 7.3
    7 Stable tag: 6.4.1
     7Stable tag: 6.4.2
    88License: MIT
    99
     
    128128== Upgrade Notice ==
    129129
    130 = 6.4.1 =
     130= 6.4.2 =
    1311316.x.x is a major upgrade in which the MultiSafepay payment methods are registered dynamically via an API request to MultiSafepay. If you are upgrading from 5.X.X version, after the upgrade, please navigate to the MultiSafepay settings page, and to each one of the payment methods enabled in your account, and confirm the settings in each section are set up according to your preferences.
    132132
     
    144144
    145145== Changelog ==
     146= Release Notes - WooCommerce 6.4.2 (May 6th, 2024) =
     147
     148### Fixed
     149+ PLGWOOS-922: Reduce the amount of request done to the payment-methods endpoint, from the admin
     150
    146151= Release Notes - WooCommerce 6.4.1 (Apr 17th, 2024) =
    147152
  • multisafepay/trunk/src/Services/PaymentMethodService.php

    r2974626 r3081925  
    4444
    4545    /**
     46     *  Check if the current page is the WooCommerce settings page for payment methods
     47     *
     48     * @return bool
     49     *
     50     * @phpcs:disable WordPress.Security.NonceVerification.Recommended
     51     */
     52    public function is_settings_payments_page(): bool {
     53        $page = isset( $_GET['page'] ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : '';
     54        $tab  = isset( $_GET['tab'] ) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : '';
     55        return is_admin() && ( 'wc-settings' === $page ) && ( 'checkout' === $tab );
     56    }
     57
     58    /**
    4659     * Return an array with the information of each payment method from the API
    4760     * If the result is cached by transient api, will be returned from there,
     
    5568    public function get_multisafepay_payment_methods_from_api(): array {
    5669        $multisafepay_payment_methods_in_cache = get_transient( 'multisafepay_payment_methods' );
    57         if ( false !== $multisafepay_payment_methods_in_cache && ! is_admin() ) {
     70        $admin_area                            = $this->is_settings_payments_page();
     71
     72        if ( ( false !== $multisafepay_payment_methods_in_cache ) && ! $admin_area ) {
    5873            return $multisafepay_payment_methods_in_cache;
    5974        }
  • multisafepay/trunk/vendor/composer/installed.php

    r3072471 r3081925  
    22    'root' => array(
    33        'name' => 'multisafepay/woocommerce',
    4         'pretty_version' => '6.4.1',
    5         'version' => '6.4.1.0',
    6         'reference' => '4995acd31e5b4e25d7e780abe83b061a18a76303',
     4        'pretty_version' => '6.4.2',
     5        'version' => '6.4.2.0',
     6        'reference' => '6c4aa656443aa7957a39274da0a5d04a0d48e8b6',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'multisafepay/woocommerce' => array(
    23             'pretty_version' => '6.4.1',
    24             'version' => '6.4.1.0',
    25             'reference' => '4995acd31e5b4e25d7e780abe83b061a18a76303',
     23            'pretty_version' => '6.4.2',
     24            'version' => '6.4.2.0',
     25            'reference' => '6c4aa656443aa7957a39274da0a5d04a0d48e8b6',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.