Version Description
Download this release
Release Info
Developer | cklosows |
Plugin | Easy Digital Downloads |
Version | 2.6.13 |
Comparing to | |
See all releases |
Code changes from version 2.6.12 to 2.6.13
- easy-digital-downloads.php +3 -3
- includes/payments/class-edd-payment.php +17 -2
- readme.txt +4 -1
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.6.
|
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.6.
|
29 |
*/
|
30 |
|
31 |
// Exit if accessed directly.
|
@@ -196,7 +196,7 @@ final class Easy_Digital_Downloads {
|
|
196 |
|
197 |
// Plugin version.
|
198 |
if ( ! defined( 'EDD_VERSION' ) ) {
|
199 |
-
define( 'EDD_VERSION', '2.6.
|
200 |
}
|
201 |
|
202 |
// 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.6.13
|
9 |
* Text Domain: easy-digital-downloads
|
10 |
* Domain Path: languages
|
11 |
*
|
25 |
* @package EDD
|
26 |
* @category Core
|
27 |
* @author Pippin Williamson
|
28 |
+
* @version 2.6.13
|
29 |
*/
|
30 |
|
31 |
// Exit if accessed directly.
|
196 |
|
197 |
// Plugin version.
|
198 |
if ( ! defined( 'EDD_VERSION' ) ) {
|
199 |
+
define( 'EDD_VERSION', '2.6.13' );
|
200 |
}
|
201 |
|
202 |
// Plugin Folder Path.
|
includes/payments/class-edd-payment.php
CHANGED
@@ -1558,6 +1558,18 @@ class EDD_Payment {
|
|
1558 |
|
1559 |
if ( $meta_key === '_edd_payment_meta' ) {
|
1560 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1561 |
// Payment meta was simplified in EDD v1.5, so these are here for backwards compatibility
|
1562 |
if ( empty( $meta['key'] ) ) {
|
1563 |
$meta['key'] = $this->setup_payment_key();
|
@@ -1605,8 +1617,11 @@ class EDD_Payment {
|
|
1605 |
$meta_value = apply_filters( 'edd_edd_update_payment_meta_' . $meta_key, $meta_value, $this->ID );
|
1606 |
update_post_meta( $this->ID, '_edd_payment_user_email', $meta_value );
|
1607 |
|
1608 |
-
$current_meta = $this->get_meta( '_edd_payment_meta'
|
1609 |
-
|
|
|
|
|
|
|
1610 |
|
1611 |
$meta_key = '_edd_payment_meta';
|
1612 |
$meta_value = $current_meta;
|
1558 |
|
1559 |
if ( $meta_key === '_edd_payment_meta' ) {
|
1560 |
|
1561 |
+
// #5228 Fix possible data issue introduced in 2.6.12
|
1562 |
+
if ( isset( $meta[0] ) ) {
|
1563 |
+
$bad_meta = $meta[0];
|
1564 |
+
unset( $meta[0] );
|
1565 |
+
|
1566 |
+
if ( is_array( $bad_meta ) ) {
|
1567 |
+
$meta = array_merge( $meta, $bad_meta );
|
1568 |
+
}
|
1569 |
+
|
1570 |
+
update_post_meta( $this->ID, '_edd_payment_meta', $meta );
|
1571 |
+
}
|
1572 |
+
|
1573 |
// Payment meta was simplified in EDD v1.5, so these are here for backwards compatibility
|
1574 |
if ( empty( $meta['key'] ) ) {
|
1575 |
$meta['key'] = $this->setup_payment_key();
|
1617 |
$meta_value = apply_filters( 'edd_edd_update_payment_meta_' . $meta_key, $meta_value, $this->ID );
|
1618 |
update_post_meta( $this->ID, '_edd_payment_user_email', $meta_value );
|
1619 |
|
1620 |
+
$current_meta = $this->get_meta( '_edd_payment_meta' );
|
1621 |
+
|
1622 |
+
if ( is_array( $current_meta ) ){
|
1623 |
+
$current_meta['user_info']['email'] = $meta_value;
|
1624 |
+
}
|
1625 |
|
1626 |
$meta_key = '_edd_payment_meta';
|
1627 |
$meta_value = $current_meta;
|
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
|
7 |
Requires at least: 4.0
|
8 |
Tested up to: 4.7
|
9 |
-
Stable Tag: 2.6.
|
10 |
|
11 |
License: GNU Version 2 or Any Later Version
|
12 |
|
@@ -187,6 +187,9 @@ Yes, through the addition of one or more of the add-on payment gateways, you can
|
|
187 |
|
188 |
== Changelog ==
|
189 |
|
|
|
|
|
|
|
190 |
= 2.6.12, November 17, 2016 =
|
191 |
* New: Added new hooks to the profile editor form.
|
192 |
* Fix: edd_has_active_discounts could return false when there were active discounts.
|
6 |
Tags: download, downloads, e-store, eshop, digital downloads, e-commerce, wp-ecommerce, wp ecommerce
|
7 |
Requires at least: 4.0
|
8 |
Tested up to: 4.7
|
9 |
+
Stable Tag: 2.6.13
|
10 |
|
11 |
License: GNU Version 2 or Any Later Version
|
12 |
|
187 |
|
188 |
== Changelog ==
|
189 |
|
190 |
+
= 2.6.13, November 21, 2016 =
|
191 |
+
* Fix: Custom payment meta items were not being saved correctly.
|
192 |
+
|
193 |
= 2.6.12, November 17, 2016 =
|
194 |
* New: Added new hooks to the profile editor form.
|
195 |
* Fix: edd_has_active_discounts could return false when there were active discounts.
|