Version Description
- 2019-04-17 =
- Fix/Performance - Prevent db option updates during bootstrap on each page load
- Tweak
Download this release
Release Info
Developer | woothemes |
Plugin | WooCommerce PayPal Express Checkout Payment Gateway |
Version | 1.6.11 |
Comparing to | |
See all releases |
Code changes from version 1.6.10 to 1.6.11
changelog.txt
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
*** Changelog ***
|
2 |
|
|
|
|
|
|
|
|
|
3 |
= 1.6.10 - 2019-03-05 =
|
4 |
* Fix - Use only product attributes when adding to cart
|
5 |
|
1 |
*** Changelog ***
|
2 |
|
3 |
+
= 1.6.11 - 2019-04-17 =
|
4 |
+
* Fix/Performance - Prevent db option updates during bootstrap on each page load
|
5 |
+
* Tweak = WC 3.6 compatibiliy.
|
6 |
+
|
7 |
= 1.6.10 - 2019-03-05 =
|
8 |
* Fix - Use only product attributes when adding to cart
|
9 |
|
includes/class-wc-gateway-ppec-plugin.php
CHANGED
@@ -161,15 +161,13 @@ class WC_Gateway_PPEC_Plugin {
|
|
161 |
$this->_check_credentials();
|
162 |
|
163 |
$this->_bootstrapped = true;
|
164 |
-
delete_option( 'wc_gateway_ppce_bootstrap_warning_message' );
|
165 |
-
delete_option( 'wc_gateway_ppce_prompt_to_connect' );
|
166 |
} catch ( Exception $e ) {
|
167 |
if ( in_array( $e->getCode(), array( self::ALREADY_BOOTSTRAPED, self::DEPENDENCIES_UNSATISFIED ) ) ) {
|
168 |
-
|
169 |
}
|
170 |
|
171 |
if ( self::NOT_CONNECTED === $e->getCode() ) {
|
172 |
-
|
173 |
}
|
174 |
|
175 |
add_action( 'admin_notices', array( $this, 'show_bootstrap_warning' ) );
|
@@ -177,7 +175,7 @@ class WC_Gateway_PPEC_Plugin {
|
|
177 |
}
|
178 |
|
179 |
public function show_bootstrap_warning() {
|
180 |
-
$dependencies_message =
|
181 |
if ( ! empty( $dependencies_message ) && 'yes' !== get_option( 'wc_gateway_ppec_bootstrap_warning_message_dismissed', 'no' ) ) {
|
182 |
?>
|
183 |
<div class="notice notice-warning is-dismissible ppec-dismiss-bootstrap-warning-message">
|
@@ -199,7 +197,7 @@ class WC_Gateway_PPEC_Plugin {
|
|
199 |
<?php
|
200 |
}
|
201 |
|
202 |
-
$prompt_connect =
|
203 |
if ( ! empty( $prompt_connect ) && 'yes' !== get_option( 'wc_gateway_ppec_prompt_to_connect_message_dismissed', 'no' ) ) {
|
204 |
?>
|
205 |
<div class="notice notice-warning is-dismissible ppec-dismiss-prompt-to-connect-message">
|
161 |
$this->_check_credentials();
|
162 |
|
163 |
$this->_bootstrapped = true;
|
|
|
|
|
164 |
} catch ( Exception $e ) {
|
165 |
if ( in_array( $e->getCode(), array( self::ALREADY_BOOTSTRAPED, self::DEPENDENCIES_UNSATISFIED ) ) ) {
|
166 |
+
$this->bootstrap_warning_message = $e->getMessage();
|
167 |
}
|
168 |
|
169 |
if ( self::NOT_CONNECTED === $e->getCode() ) {
|
170 |
+
$this->prompt_to_connect = $e->getMessage();
|
171 |
}
|
172 |
|
173 |
add_action( 'admin_notices', array( $this, 'show_bootstrap_warning' ) );
|
175 |
}
|
176 |
|
177 |
public function show_bootstrap_warning() {
|
178 |
+
$dependencies_message = isset( $this->bootstrap_warning_message ) ? $this->bootstrap_warning_message : null;
|
179 |
if ( ! empty( $dependencies_message ) && 'yes' !== get_option( 'wc_gateway_ppec_bootstrap_warning_message_dismissed', 'no' ) ) {
|
180 |
?>
|
181 |
<div class="notice notice-warning is-dismissible ppec-dismiss-bootstrap-warning-message">
|
197 |
<?php
|
198 |
}
|
199 |
|
200 |
+
$prompt_connect = isset( $this->prompt_to_connect ) ? $this->prompt_to_connect : null;
|
201 |
if ( ! empty( $prompt_connect ) && 'yes' !== get_option( 'wc_gateway_ppec_prompt_to_connect_message_dismissed', 'no' ) ) {
|
202 |
?>
|
203 |
<div class="notice notice-warning is-dismissible ppec-dismiss-prompt-to-connect-message">
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== WooCommerce PayPal Checkout Payment Gateway ===
|
2 |
-
Contributors: automattic, woothemes, akeda, dwainm, royho, allendav, slash1andy, woosteve, spraveenitpro, mikedmoore, fernashes, shellbeezy, danieldudzic, mikaey, fullysupportedphil, dsmithweb, corsonr, bor0, zandyring, pauldechov
|
3 |
Tags: ecommerce, e-commerce, commerce, woothemes, wordpress ecommerce, store, sales, sell, shop, shopping, cart, checkout, configurable, paypal
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 5.0.3
|
6 |
-
Stable tag: 1.6.
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -101,6 +101,10 @@ Please use this to inform us about bugs, or make contributions via PRs.
|
|
101 |
|
102 |
== Changelog ==
|
103 |
|
|
|
|
|
|
|
|
|
104 |
= 1.6.10 - 2019-03-05 =
|
105 |
* Fix - Use only product attributes when adding to cart
|
106 |
|
1 |
=== WooCommerce PayPal Checkout Payment Gateway ===
|
2 |
+
Contributors: automattic, woothemes, akeda, dwainm, royho, allendav, slash1andy, woosteve, spraveenitpro, mikedmoore, fernashes, shellbeezy, danieldudzic, mikaey, fullysupportedphil, dsmithweb, corsonr, bor0, zandyring, pauldechov, robobot3000
|
3 |
Tags: ecommerce, e-commerce, commerce, woothemes, wordpress ecommerce, store, sales, sell, shop, shopping, cart, checkout, configurable, paypal
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 5.0.3
|
6 |
+
Stable tag: 1.6.11
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
101 |
|
102 |
== Changelog ==
|
103 |
|
104 |
+
= 1.6.11 - 2019-04-17 =
|
105 |
+
* Fix/Performance - Prevent db option updates during bootstrap on each page load
|
106 |
+
* Tweak = WC 3.6 compatibiliy.
|
107 |
+
|
108 |
= 1.6.10 - 2019-03-05 =
|
109 |
* Fix - Use only product attributes when adding to cart
|
110 |
|
woocommerce-gateway-paypal-express-checkout.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WooCommerce PayPal Checkout Gateway
|
4 |
* Plugin URI: https://woocommerce.com/products/woocommerce-gateway-paypal-express-checkout/
|
5 |
* Description: A payment gateway for PayPal Checkout (https://www.paypal.com/us/webapps/mpp/paypal-checkout).
|
6 |
-
* Version: 1.6.
|
7 |
* Author: WooCommerce
|
8 |
* Author URI: https://woocommerce.com
|
9 |
* Copyright: © 2018 WooCommerce / PayPal.
|
@@ -11,7 +11,7 @@
|
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
12 |
* Text Domain: woocommerce-gateway-paypal-express-checkout
|
13 |
* Domain Path: /languages
|
14 |
-
* WC tested up to: 3.
|
15 |
* WC requires at least: 2.6
|
16 |
*/
|
17 |
/**
|
@@ -27,7 +27,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
27 |
exit; // Exit if accessed directly
|
28 |
}
|
29 |
|
30 |
-
define( 'WC_GATEWAY_PPEC_VERSION', '1.6.
|
31 |
|
32 |
/**
|
33 |
* Return instance of WC_Gateway_PPEC_Plugin.
|
3 |
* Plugin Name: WooCommerce PayPal Checkout Gateway
|
4 |
* Plugin URI: https://woocommerce.com/products/woocommerce-gateway-paypal-express-checkout/
|
5 |
* Description: A payment gateway for PayPal Checkout (https://www.paypal.com/us/webapps/mpp/paypal-checkout).
|
6 |
+
* Version: 1.6.11
|
7 |
* Author: WooCommerce
|
8 |
* Author URI: https://woocommerce.com
|
9 |
* Copyright: © 2018 WooCommerce / PayPal.
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
12 |
* Text Domain: woocommerce-gateway-paypal-express-checkout
|
13 |
* Domain Path: /languages
|
14 |
+
* WC tested up to: 3.6
|
15 |
* WC requires at least: 2.6
|
16 |
*/
|
17 |
/**
|
27 |
exit; // Exit if accessed directly
|
28 |
}
|
29 |
|
30 |
+
define( 'WC_GATEWAY_PPEC_VERSION', '1.6.11' );
|
31 |
|
32 |
/**
|
33 |
* Return instance of WC_Gateway_PPEC_Plugin.
|