Easy Digital Downloads - Version 2.8.3

Version Description

Download this release

Release Info

Developer cklosows
Plugin Icon 128x128 Easy Digital Downloads
Version 2.8.3
Comparing to
See all releases

Code changes from version 2.8.2 to 2.8.3

easy-digital-downloads.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: The easiest way to sell digital products with WordPress.
6
  * Author: Easy Digital Downloads
7
  * Author URI: https://easydigitaldownloads.com
8
- * Version: 2.8.2
9
  * Text Domain: easy-digital-downloads
10
  * Domain Path: languages
11
  *
@@ -25,7 +25,7 @@
25
  * @package EDD
26
  * @category Core
27
  * @author Pippin Williamson
28
- * @version 2.8.2
29
  */
30
 
31
  // Exit if accessed directly.
@@ -206,7 +206,7 @@ final class Easy_Digital_Downloads {
206
 
207
  // Plugin version.
208
  if ( ! defined( 'EDD_VERSION' ) ) {
209
- define( 'EDD_VERSION', '2.8.2' );
210
  }
211
 
212
  // Plugin Folder Path.
5
  * Description: The easiest way to sell digital products with WordPress.
6
  * Author: Easy Digital Downloads
7
  * Author URI: https://easydigitaldownloads.com
8
+ * Version: 2.8.3
9
  * Text Domain: easy-digital-downloads
10
  * Domain Path: languages
11
  *
25
  * @package EDD
26
  * @category Core
27
  * @author Pippin Williamson
28
+ * @version 2.8.3
29
  */
30
 
31
  // Exit if accessed directly.
206
 
207
  // Plugin version.
208
  if ( ! defined( 'EDD_VERSION' ) ) {
209
+ define( 'EDD_VERSION', '2.8.3' );
210
  }
211
 
212
  // Plugin Folder Path.
includes/checkout/template.php CHANGED
@@ -246,7 +246,7 @@ function edd_get_cc_form() {
246
  <span class="card-type"></span>
247
  </label>
248
  <span class="edd-description"><?php _e( 'The (typically) 16 digits on the front of your credit card.', 'easy-digital-downloads' ); ?></span>
249
- <input type="tel" pattern="[0-9]{13,16}" autocomplete="off" name="card_number" id="card_number" class="card-number edd-input required" placeholder="<?php _e( 'Card number', 'easy-digital-downloads' ); ?>" />
250
  </p>
251
  <p id="edd-card-cvc-wrap">
252
  <label for="card_cvc" class="edd-label">
246
  <span class="card-type"></span>
247
  </label>
248
  <span class="edd-description"><?php _e( 'The (typically) 16 digits on the front of your credit card.', 'easy-digital-downloads' ); ?></span>
249
+ <input type="tel" pattern="^[0-9!@#$%^&* ]*$" autocomplete="off" name="card_number" id="card_number" class="card-number edd-input required" placeholder="<?php _e( 'Card number', 'easy-digital-downloads' ); ?>" />
250
  </p>
251
  <p id="edd-card-cvc-wrap">
252
  <label for="card_cvc" class="edd-label">
includes/scripts.php CHANGED
@@ -42,10 +42,11 @@ function edd_load_scripts() {
42
  if ( edd_is_checkout() ) {
43
  if ( edd_is_cc_verify_enabled() ) {
44
  wp_register_script( 'creditCardValidator', $js_dir . 'jquery.creditCardValidator' . $suffix . '.js', array( 'jquery' ), EDD_VERSION, true );
 
 
45
  wp_register_script( 'jQuery.payment', $js_dir . 'jquery.payment.min.js', array( 'jquery' ), EDD_VERSION, true );
46
 
47
  wp_enqueue_script( 'creditCardValidator' );
48
- wp_enqueue_script( 'jQuery.payment' );
49
  }
50
 
51
  wp_register_script( 'edd-checkout-global', $js_dir . 'edd-checkout-global' . $suffix . '.js', array( 'jquery' ), EDD_VERSION, true );
42
  if ( edd_is_checkout() ) {
43
  if ( edd_is_cc_verify_enabled() ) {
44
  wp_register_script( 'creditCardValidator', $js_dir . 'jquery.creditCardValidator' . $suffix . '.js', array( 'jquery' ), EDD_VERSION, true );
45
+
46
+ // Registered so gateways can enqueue it when they support the space formatting. wp_enqueue_script( 'jQuery.payment' );
47
  wp_register_script( 'jQuery.payment', $js_dir . 'jquery.payment.min.js', array( 'jquery' ), EDD_VERSION, true );
48
 
49
  wp_enqueue_script( 'creditCardValidator' );
 
50
  }
51
 
52
  wp_register_script( 'edd-checkout-global', $js_dir . 'edd-checkout-global' . $suffix . '.js', array( 'jquery' ), EDD_VERSION, true );
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link: https://easydigitaldownloads.com/donate/
6
  Tags: download, downloads, e-store, eshop, digital downloads, e-commerce, wp-ecommerce, wp ecommerce, ecommerce, ebook
7
  Requires at least: 4.4
8
  Tested up to: 4.9
9
- Stable Tag: 2.8.2
10
  License: GNU Version 2 or Any Later Version
11
 
12
  The easiest way to sell digital products with WordPress.
@@ -213,6 +213,10 @@ Yes. Easy Digital Downloads also includes default support for Amazon Payments an
213
 
214
  == Changelog ==
215
 
 
 
 
 
216
  = 2.8.2, August 8, 2017 =
217
 
218
  * New: Spaces are now auto-formatted into credit card number fields.
6
  Tags: download, downloads, e-store, eshop, digital downloads, e-commerce, wp-ecommerce, wp ecommerce, ecommerce, ebook
7
  Requires at least: 4.4
8
  Tested up to: 4.9
9
+ Stable Tag: 2.8.3
10
  License: GNU Version 2 or Any Later Version
11
 
12
  The easiest way to sell digital products with WordPress.
213
 
214
  == Changelog ==
215
 
216
+ = 2.8.3, August 9, 2017 =
217
+ * Fix: Update HTML5 pattern on card field to account for whitespace.
218
+ * Fix: Don't enqueue jQuery.payment by default, allow gateways to enqueue when supported.
219
+
220
  = 2.8.2, August 8, 2017 =
221
 
222
  * New: Spaces are now auto-formatted into credit card number fields.