Changeset 3081925
- Timestamp:
- 05/06/2024 12:30:47 PM (23 months ago)
- Location:
- multisafepay
- Files:
-
- 8 edited
- 1 copied
-
tags/6.4.2 (copied) (copied from multisafepay/trunk)
-
tags/6.4.2/multisafepay.php (modified) (3 diffs)
-
tags/6.4.2/readme.txt (modified) (3 diffs)
-
tags/6.4.2/src/Services/PaymentMethodService.php (modified) (2 diffs)
-
tags/6.4.2/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/multisafepay.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/src/Services/PaymentMethodService.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
multisafepay/tags/6.4.2/multisafepay.php
r3072471 r3081925 5 5 * Plugin URI: https://docs.multisafepay.com/docs/woocommerce 6 6 * Description: MultiSafepay Payment Plugin 7 * Version: 6.4. 17 * Version: 6.4.2 8 8 * Author: MultiSafepay 9 9 * Author URI: https://www.multisafepay.com … … 14 14 * Tested up to: 6.5.2 15 15 * WC requires at least: 6.0.0 16 * WC tested up to: 8. 7.016 * WC tested up to: 8.8.3 17 17 * Requires PHP: 7.3 18 18 * Text Domain: multisafepay … … 27 27 * Plugin version 28 28 */ 29 define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.4. 1' );29 define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.4.2' ); 30 30 31 31 /** -
multisafepay/tags/6.4.2/readme.txt
r3072471 r3081925 5 5 Tested up to: 6.5.2 6 6 Requires PHP: 7.3 7 Stable tag: 6.4. 17 Stable tag: 6.4.2 8 8 License: MIT 9 9 … … 128 128 == Upgrade Notice == 129 129 130 = 6.4. 1=130 = 6.4.2 = 131 131 6.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. 132 132 … … 144 144 145 145 == 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 146 151 = Release Notes - WooCommerce 6.4.1 (Apr 17th, 2024) = 147 152 -
multisafepay/tags/6.4.2/src/Services/PaymentMethodService.php
r2974626 r3081925 44 44 45 45 /** 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 /** 46 59 * Return an array with the information of each payment method from the API 47 60 * If the result is cached by transient api, will be returned from there, … … 55 68 public function get_multisafepay_payment_methods_from_api(): array { 56 69 $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 ) { 58 73 return $multisafepay_payment_methods_in_cache; 59 74 } -
multisafepay/tags/6.4.2/vendor/composer/installed.php
r3072471 r3081925 2 2 'root' => array( 3 3 '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', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 21 21 ), 22 22 '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', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../', -
multisafepay/trunk/multisafepay.php
r3072471 r3081925 5 5 * Plugin URI: https://docs.multisafepay.com/docs/woocommerce 6 6 * Description: MultiSafepay Payment Plugin 7 * Version: 6.4. 17 * Version: 6.4.2 8 8 * Author: MultiSafepay 9 9 * Author URI: https://www.multisafepay.com … … 14 14 * Tested up to: 6.5.2 15 15 * WC requires at least: 6.0.0 16 * WC tested up to: 8. 7.016 * WC tested up to: 8.8.3 17 17 * Requires PHP: 7.3 18 18 * Text Domain: multisafepay … … 27 27 * Plugin version 28 28 */ 29 define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.4. 1' );29 define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.4.2' ); 30 30 31 31 /** -
multisafepay/trunk/readme.txt
r3072471 r3081925 5 5 Tested up to: 6.5.2 6 6 Requires PHP: 7.3 7 Stable tag: 6.4. 17 Stable tag: 6.4.2 8 8 License: MIT 9 9 … … 128 128 == Upgrade Notice == 129 129 130 = 6.4. 1=130 = 6.4.2 = 131 131 6.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. 132 132 … … 144 144 145 145 == 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 146 151 = Release Notes - WooCommerce 6.4.1 (Apr 17th, 2024) = 147 152 -
multisafepay/trunk/src/Services/PaymentMethodService.php
r2974626 r3081925 44 44 45 45 /** 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 /** 46 59 * Return an array with the information of each payment method from the API 47 60 * If the result is cached by transient api, will be returned from there, … … 55 68 public function get_multisafepay_payment_methods_from_api(): array { 56 69 $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 ) { 58 73 return $multisafepay_payment_methods_in_cache; 59 74 } -
multisafepay/trunk/vendor/composer/installed.php
r3072471 r3081925 2 2 'root' => array( 3 3 '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', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 21 21 ), 22 22 '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', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.