Version Description
Download this release
Release Info
Developer | mordauk |
Plugin | Easy Digital Downloads |
Version | 2.5.5 |
Comparing to | |
See all releases |
Code changes from version 2.5.4 to 2.5.5
- easy-digital-downloads.php +3 -3
- includes/payments/class-edd-payment.php +2 -0
- includes/payments/functions.php +2 -0
- includes/process-purchase.php +3 -0
- readme.txt +5 -1
easy-digital-downloads.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Serve Digital Downloads Through WordPress.
|
6 |
* Author: Pippin Williamson and Company
|
7 |
* Author URI: https://easydigitaldownloads.com
|
8 |
-
* Version: 2.5.
|
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.5.
|
29 |
*/
|
30 |
|
31 |
// Exit if accessed directly.
|
@@ -186,7 +186,7 @@ final class Easy_Digital_Downloads {
|
|
186 |
|
187 |
// Plugin version.
|
188 |
if ( ! defined( 'EDD_VERSION' ) ) {
|
189 |
-
define( 'EDD_VERSION', '2.5.
|
190 |
}
|
191 |
|
192 |
// Plugin Folder Path.
|
5 |
* Description: Serve Digital Downloads Through WordPress.
|
6 |
* Author: Pippin Williamson and Company
|
7 |
* Author URI: https://easydigitaldownloads.com
|
8 |
+
* Version: 2.5.5
|
9 |
* Text Domain: easy-digital-downloads
|
10 |
* Domain Path: languages
|
11 |
*
|
25 |
* @package EDD
|
26 |
* @category Core
|
27 |
* @author Pippin Williamson
|
28 |
+
* @version 2.5.5
|
29 |
*/
|
30 |
|
31 |
// Exit if accessed directly.
|
186 |
|
187 |
// Plugin version.
|
188 |
if ( ! defined( 'EDD_VERSION' ) ) {
|
189 |
+
define( 'EDD_VERSION', '2.5.5' );
|
190 |
}
|
191 |
|
192 |
// Plugin Folder Path.
|
includes/payments/class-edd-payment.php
CHANGED
@@ -488,6 +488,8 @@ final class EDD_Payment {
|
|
488 |
|
489 |
if( empty( $this->date ) ) {
|
490 |
$this->date = date( 'Y-m-d H:i:s', current_time( 'timestamp' ) );
|
|
|
|
|
491 |
}
|
492 |
|
493 |
if ( empty( $this->key ) ) {
|
488 |
|
489 |
if( empty( $this->date ) ) {
|
490 |
$this->date = date( 'Y-m-d H:i:s', current_time( 'timestamp' ) );
|
491 |
+
} else {
|
492 |
+
$this->date = date( 'Y-m-d H:i:s', strtotime( $this->date, current_time( 'timestamp' ) ) );
|
493 |
}
|
494 |
|
495 |
if ( empty( $this->key ) ) {
|
includes/payments/functions.php
CHANGED
@@ -169,6 +169,8 @@ function edd_insert_payment( $payment_data = array() ) {
|
|
169 |
$payment->date = $payment_data['date'];
|
170 |
} elseif ( ! empty( $payment_data['post_date'] ) ) {
|
171 |
$payment->date = $payment_data['post_date'];
|
|
|
|
|
172 |
}
|
173 |
|
174 |
if ( edd_get_option( 'enable_sequential' ) ) {
|
169 |
$payment->date = $payment_data['date'];
|
170 |
} elseif ( ! empty( $payment_data['post_date'] ) ) {
|
171 |
$payment->date = $payment_data['post_date'];
|
172 |
+
} else {
|
173 |
+
$payment->date = null;
|
174 |
}
|
175 |
|
176 |
if ( edd_get_option( 'enable_sequential' ) ) {
|
includes/process-purchase.php
CHANGED
@@ -61,6 +61,9 @@ function edd_process_purchase_form() {
|
|
61 |
edd_die();
|
62 |
}
|
63 |
|
|
|
|
|
|
|
64 |
// Setup user information
|
65 |
$user_info = array(
|
66 |
'id' => $user['user_id'],
|
61 |
edd_die();
|
62 |
}
|
63 |
|
64 |
+
// Make sure the payment is inserted with the correct timezone
|
65 |
+
date_default_timezone_set( edd_get_timezone_id() );
|
66 |
+
|
67 |
// Setup user information
|
68 |
$user_info = array(
|
69 |
'id' => $user['user_id'],
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Donate link: https://pippinsplugins.com/support-the-site
|
|
6 |
Tags: download, downloads, e-store, eshop, digital downloads, e-downloads, ecommerce, e commerce, e-commerce, selling, wp-ecommerce, wp ecommerce, mordauk, Pippin Williamson, pippinsplugins
|
7 |
Requires at least: 4.0
|
8 |
Tested up to: 4.5
|
9 |
-
Stable Tag: 2.5.
|
10 |
|
11 |
License: GNU Version 2 or Any Later Version
|
12 |
|
@@ -214,6 +214,10 @@ Yes, through the addition of one or more of the add-on payment gateways, you can
|
|
214 |
|
215 |
== Changelog ==
|
216 |
|
|
|
|
|
|
|
|
|
217 |
= 2.5.4, January 12, 2016 =
|
218 |
|
219 |
* Fix: Timezones set improperly sometimes when payments are created
|
6 |
Tags: download, downloads, e-store, eshop, digital downloads, e-downloads, ecommerce, e commerce, e-commerce, selling, wp-ecommerce, wp ecommerce, mordauk, Pippin Williamson, pippinsplugins
|
7 |
Requires at least: 4.0
|
8 |
Tested up to: 4.5
|
9 |
+
Stable Tag: 2.5.5
|
10 |
|
11 |
License: GNU Version 2 or Any Later Version
|
12 |
|
214 |
|
215 |
== Changelog ==
|
216 |
|
217 |
+
= 2.5.5, January 12, 2016 =
|
218 |
+
|
219 |
+
* Fix: Timezones still not set properly for some sites. This resulted in download links missing from purchase receipts.
|
220 |
+
|
221 |
= 2.5.4, January 12, 2016 =
|
222 |
|
223 |
* Fix: Timezones set improperly sometimes when payments are created
|