updated plugin Easy Digital Downloads
version 3.1.1.4.2
This commit is contained in:
@ -989,9 +989,6 @@ class EDD_Payment {
|
||||
do_action( 'edd_payment_saved', $this->ID, $this );
|
||||
}
|
||||
|
||||
$customer = new EDD_Customer( $this->customer_id );
|
||||
$customer->recalculate_stats();
|
||||
|
||||
/**
|
||||
* Update the payment in the object cache
|
||||
*/
|
||||
@ -2655,15 +2652,6 @@ class EDD_Payment {
|
||||
if ( true === $alter_store_earnings ) {
|
||||
edd_decrease_total_earnings( $this->total );
|
||||
}
|
||||
|
||||
// Decrement the stats for the customer
|
||||
if ( ! empty( $this->customer_id ) ) {
|
||||
$customer = new EDD_Customer( $this->customer_id );
|
||||
|
||||
if ( ! empty( $alter_customer_value || $alter_customer_purchase_count ) ) {
|
||||
$customer->recalculate_stats();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user