Version Description
Download this release
Release Info
Developer | mordauk |
Plugin | Easy Digital Downloads |
Version | 2.5.6 |
Comparing to | |
See all releases |
Code changes from version 2.5.5 to 2.5.6
- easy-digital-downloads.php +3 -3
- includes/payments/class-edd-payment.php +2 -11
- includes/payments/functions.php +2 -9
- includes/process-purchase.php +0 -3
- readme.txt +6 -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.6
|
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.6
|
29 |
*/
|
30 |
|
31 |
// Exit if accessed directly.
|
186 |
|
187 |
// Plugin version.
|
188 |
if ( ! defined( 'EDD_VERSION' ) ) {
|
189 |
+
define( 'EDD_VERSION', '2.5.6' );
|
190 |
}
|
191 |
|
192 |
// Plugin Folder Path.
|
includes/payments/class-edd-payment.php
CHANGED
@@ -472,9 +472,6 @@ final class EDD_Payment {
|
|
472 |
*/
|
473 |
private function insert_payment() {
|
474 |
|
475 |
-
// Make sure the payment is inserted with the correct timezone
|
476 |
-
date_default_timezone_set( edd_get_timezone_id() );
|
477 |
-
|
478 |
// Construct the payment title
|
479 |
$payment_title = '';
|
480 |
|
@@ -486,12 +483,6 @@ final class EDD_Payment {
|
|
486 |
$payment_title = $this->email;
|
487 |
}
|
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 ) ) {
|
496 |
|
497 |
$auth_key = defined( 'AUTH_KEY' ) ? AUTH_KEY : '';
|
@@ -530,9 +521,9 @@ final class EDD_Payment {
|
|
530 |
'post_title' => $payment_title,
|
531 |
'post_status' => $this->status,
|
532 |
'post_type' => 'edd_payment',
|
|
|
|
|
533 |
'post_parent' => $this->parent_payment,
|
534 |
-
'post_date' => $this->date,
|
535 |
-
'post_date_gmt' => get_gmt_from_date( $this->date ),
|
536 |
), $payment_data );
|
537 |
|
538 |
// Create a blank payment
|
472 |
*/
|
473 |
private function insert_payment() {
|
474 |
|
|
|
|
|
|
|
475 |
// Construct the payment title
|
476 |
$payment_title = '';
|
477 |
|
483 |
$payment_title = $this->email;
|
484 |
}
|
485 |
|
|
|
|
|
|
|
|
|
|
|
|
|
486 |
if ( empty( $this->key ) ) {
|
487 |
|
488 |
$auth_key = defined( 'AUTH_KEY' ) ? AUTH_KEY : '';
|
521 |
'post_title' => $payment_title,
|
522 |
'post_status' => $this->status,
|
523 |
'post_type' => 'edd_payment',
|
524 |
+
'post_date' => ! empty( $this->date ) ? $this->date : null,
|
525 |
+
'post_date_gmt' => ! empty( $this->date ) ? get_gmt_from_date( $this->date ) : null,
|
526 |
'post_parent' => $this->parent_payment,
|
|
|
|
|
527 |
), $payment_data );
|
528 |
|
529 |
// Create a blank payment
|
includes/payments/functions.php
CHANGED
@@ -120,9 +120,6 @@ function edd_insert_payment( $payment_data = array() ) {
|
|
120 |
return false;
|
121 |
}
|
122 |
|
123 |
-
// Make sure the payment is inserted with the correct timezone
|
124 |
-
date_default_timezone_set( edd_get_timezone_id() );
|
125 |
-
|
126 |
$payment = new EDD_Payment();
|
127 |
|
128 |
if( is_array( $payment_data['cart_details'] ) && ! empty( $payment_data['cart_details'] ) ) {
|
@@ -165,12 +162,8 @@ function edd_insert_payment( $payment_data = array() ) {
|
|
165 |
$payment->parent_payment = ! empty( $payment_data['parent'] ) ? absint( $payment_data['parent'] ) : '';
|
166 |
$payment->discounts = ! empty( $payment_data['user_info']['discount'] ) ? $payment_data['user_info']['discount'] : array();
|
167 |
|
168 |
-
if (
|
169 |
-
$payment->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' ) ) {
|
120 |
return false;
|
121 |
}
|
122 |
|
|
|
|
|
|
|
123 |
$payment = new EDD_Payment();
|
124 |
|
125 |
if( is_array( $payment_data['cart_details'] ) && ! empty( $payment_data['cart_details'] ) ) {
|
162 |
$payment->parent_payment = ! empty( $payment_data['parent'] ) ? absint( $payment_data['parent'] ) : '';
|
163 |
$payment->discounts = ! empty( $payment_data['user_info']['discount'] ) ? $payment_data['user_info']['discount'] : array();
|
164 |
|
165 |
+
if ( isset( $payment_data['post_date'] ) ) {
|
166 |
+
$payment->date = $payment_data['post_date'];
|
|
|
|
|
|
|
|
|
167 |
}
|
168 |
|
169 |
if ( edd_get_option( 'enable_sequential' ) ) {
|
includes/process-purchase.php
CHANGED
@@ -61,9 +61,6 @@ function edd_process_purchase_form() {
|
|
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'],
|
61 |
edd_die();
|
62 |
}
|
63 |
|
|
|
|
|
|
|
64 |
// Setup user information
|
65 |
$user_info = array(
|
66 |
'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,11 @@ Yes, through the addition of one or more of the add-on payment gateways, you can
|
|
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.
|
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.6
|
10 |
|
11 |
License: GNU Version 2 or Any Later Version
|
12 |
|
214 |
|
215 |
== Changelog ==
|
216 |
|
217 |
+
= 2.5.6, January 13, 2016 =
|
218 |
+
|
219 |
+
* Fix: Payment dates recorded with incorrect dates depending on the timezone selected in settings
|
220 |
+
* Fix: Download links missing from purchase receipts for some sites
|
221 |
+
|
222 |
= 2.5.5, January 12, 2016 =
|
223 |
|
224 |
* Fix: Timezones still not set properly for some sites. This resulted in download links missing from purchase receipts.
|