WooCommerce PayPal Express Checkout Payment Gateway - Version 1.5.3

Version Description

  • 2018-03-28 =
  • Fix - wp_enqueue_media was not correctly loaded causing weird behavior with other parts of system wanting to use it.
  • Fix - Typo in activation hook.
Download this release

Release Info

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

Code changes from version 1.5.2 to 1.5.3

changelog.txt CHANGED
@@ -1,5 +1,9 @@
1
  *** Changelog ***
2
 
 
 
 
 
3
  = 1.5.2 - 2018-02-20 =
4
  * Tweak - Express checkout shouldn't display "Review your order before the payment".
5
  * Fix - Compatibility with Subscriptions and Checkout from Single Product page.
1
  *** Changelog ***
2
 
3
+ = 1.5.3 - 2018-03-28 =
4
+ * Fix - wp_enqueue_media was not correctly loaded causing weird behavior with other parts of system wanting to use it.
5
+ * Fix - Typo in activation hook.
6
+
7
  = 1.5.2 - 2018-02-20 =
8
  * Tweak - Express checkout shouldn't display "Review your order before the payment".
9
  * Fix - Compatibility with Subscriptions and Checkout from Single Product page.
includes/abstracts/abstract-wc-gateway-ppec.php CHANGED
@@ -65,13 +65,22 @@ abstract class WC_Gateway_PPEC extends WC_Payment_Gateway {
65
  $this->description = $this->get_option( 'description' );
66
  }
67
  } else {
68
- // Image upload.
69
- wp_enqueue_media();
70
-
71
- wp_enqueue_script( 'wc-gateway-ppec-settings', wc_gateway_ppec()->plugin_url . 'assets/js/wc-gateway-ppec-settings.js', array( 'jquery' ), wc_gateway_ppec()->version, true );
72
  }
73
  }
74
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  /**
76
  * Initialise Gateway Settings Form Fields.
77
  */
65
  $this->description = $this->get_option( 'description' );
66
  }
67
  } else {
68
+ add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
 
 
 
69
  }
70
  }
71
 
72
+ /**
73
+ * Enqueues admin scripts.
74
+ *
75
+ * @since 1.5.2
76
+ */
77
+ public function enqueue_scripts() {
78
+ // Image upload.
79
+ wp_enqueue_media();
80
+
81
+ wp_enqueue_script( 'wc-gateway-ppec-settings', wc_gateway_ppec()->plugin_url . 'assets/js/wc-gateway-ppec-settings.js', array( 'jquery' ), wc_gateway_ppec()->version, true );
82
+ }
83
+
84
  /**
85
  * Initialise Gateway Settings Form Fields.
86
  */
includes/class-wc-gateway-ppec-plugin.php CHANGED
@@ -306,7 +306,7 @@ class WC_Gateway_PPEC_Plugin {
306
  * Callback for activation hook.
307
  */
308
  public function activate() {
309
- if ( ! isset( $this->setings ) ) {
310
  require_once( $this->includes_path . 'class-wc-gateway-ppec-settings.php' );
311
  $settings = new WC_Gateway_PPEC_Settings();
312
  } else {
306
  * Callback for activation hook.
307
  */
308
  public function activate() {
309
+ if ( ! isset( $this->settings ) ) {
310
  require_once( $this->includes_path . 'class-wc-gateway-ppec-settings.php' );
311
  $settings = new WC_Gateway_PPEC_Settings();
312
  } else {
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: automattic, woothemes, akeda, dwainm, royho, allendav, slash1andy, woosteve, spraveenitpro, mikedmoore, fernashes, shellbeezy, danieldudzic, mikaey, fullysupportedphil, dsmithweb, corsonr, bor0, zandyring
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
- Stable tag: 1.5.2
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -93,6 +93,10 @@ Please use this to inform us about bugs, or make contributions via PRs.
93
 
94
  == Changelog ==
95
 
 
 
 
 
96
  = 1.5.2 - 2018-02-20 =
97
  * Tweak - Express checkout shouldn't display "Review your order before the payment".
98
  * Fix - Compatibility with Subscriptions and Checkout from Single Product page.
2
  Contributors: automattic, woothemes, akeda, dwainm, royho, allendav, slash1andy, woosteve, spraveenitpro, mikedmoore, fernashes, shellbeezy, danieldudzic, mikaey, fullysupportedphil, dsmithweb, corsonr, bor0, zandyring
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.0
6
+ Stable tag: 1.5.3
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
93
 
94
  == Changelog ==
95
 
96
+ = 1.5.3 - 2018-03-28 =
97
+ * Fix - wp_enqueue_media was not correctly loaded causing weird behavior with other parts of system wanting to use it.
98
+ * Fix - Typo in activation hook.
99
+
100
  = 1.5.2 - 2018-02-20 =
101
  * Tweak - Express checkout shouldn't display "Review your order before the payment".
102
  * Fix - Compatibility with Subscriptions and Checkout from Single Product page.
woocommerce-gateway-paypal-express-checkout.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WooCommerce PayPal Express Checkout Gateway
4
  * Plugin URI: https://woocommerce.com/products/woocommerce-gateway-paypal-express-checkout/
5
  * Description: A payment gateway for PayPal Express Checkout (https://www.paypal.com/us/webapps/mpp/express-checkout).
6
- * Version: 1.5.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.5.2' );
31
 
32
  /**
33
  * Return instance of WC_Gateway_PPEC_Plugin.
3
  * Plugin Name: WooCommerce PayPal Express Checkout Gateway
4
  * Plugin URI: https://woocommerce.com/products/woocommerce-gateway-paypal-express-checkout/
5
  * Description: A payment gateway for PayPal Express Checkout (https://www.paypal.com/us/webapps/mpp/express-checkout).
6
+ * Version: 1.5.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.5.3' );
31
 
32
  /**
33
  * Return instance of WC_Gateway_PPEC_Plugin.