WooCommerce PayPal Express Checkout Payment Gateway - Version 1.6.3

Version Description

  • 2018-08-15 =
  • Fix - Fatal error caused by a fix for Smart Payment Buttons.
Download this release

Release Info

Developer bor0
Plugin Icon 128x128 WooCommerce PayPal Express Checkout Payment Gateway
Version 1.6.3
Comparing to
See all releases

Code changes from version 1.6.2 to 1.6.3

changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  *** Changelog ***
2
 
 
 
 
3
  = 1.6.2 - 2018-08-15 =
4
  * Fix - Tax not applied on the (Confirm your PayPal order) page at the checkout.
5
 
1
  *** Changelog ***
2
 
3
+ = 1.6.3 - 2018-08-15 =
4
+ * Fix - Fatal error caused by a fix for Smart Payment Buttons.
5
+
6
  = 1.6.2 - 2018-08-15 =
7
  * Fix - Tax not applied on the (Confirm your PayPal order) page at the checkout.
8
 
includes/class-wc-gateway-ppec-cart-handler.php CHANGED
@@ -376,6 +376,12 @@ class WC_Gateway_PPEC_Cart_Handler {
376
  * Creates a customer session if one is not already active.
377
  */
378
  public function ensure_session() {
 
 
 
 
 
 
379
  if ( ! WC()->session->has_session() ) {
380
  WC()->session->set_customer_session_cookie( true );
381
  }
376
  * Creates a customer session if one is not already active.
377
  */
378
  public function ensure_session() {
379
+ $frontend = ( ! is_admin() || defined( 'DOING_AJAX' ) ) && ! defined( 'DOING_CRON' ) && ! defined( 'REST_REQUEST' );
380
+
381
+ if ( ! $frontend ) {
382
+ return;
383
+ }
384
+
385
  if ( ! WC()->session->has_session() ) {
386
  WC()->session->set_customer_session_cookie( true );
387
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic, woothemes, akeda, dwainm, royho, allendav, slash1andy,
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: 4.9.6
6
- Stable tag: 1.6.2
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -101,6 +101,9 @@ Please use this to inform us about bugs, or make contributions via PRs.
101
 
102
  == Changelog ==
103
 
 
 
 
104
  = 1.6.2 - 2018-08-15 =
105
  * Fix - Tax not applied on the (Confirm your PayPal order) page at the checkout.
106
 
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: 4.9.6
6
+ Stable tag: 1.6.3
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
101
 
102
  == Changelog ==
103
 
104
+ = 1.6.3 - 2018-08-15 =
105
+ * Fix - Fatal error caused by a fix for Smart Payment Buttons.
106
+
107
  = 1.6.2 - 2018-08-15 =
108
  * Fix - Tax not applied on the (Confirm your PayPal order) page at the checkout.
109
 
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.2
7
  * Author: WooCommerce
8
  * Author URI: https://woocommerce.com
9
  * Copyright: © 2018 WooCommerce / PayPal.
@@ -27,7 +27,7 @@ if ( ! defined( 'ABSPATH' ) ) {
27
  exit; // Exit if accessed directly
28
  }
29
 
30
- define( 'WC_GATEWAY_PPEC_VERSION', '1.6.2' );
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.3
7
  * Author: WooCommerce
8
  * Author URI: https://woocommerce.com
9
  * Copyright: © 2018 WooCommerce / PayPal.
27
  exit; // Exit if accessed directly
28
  }
29
 
30
+ define( 'WC_GATEWAY_PPEC_VERSION', '1.6.3' );
31
 
32
  /**
33
  * Return instance of WC_Gateway_PPEC_Plugin.