Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit 384a5de

Browse files
committed
Reverted strict comparison
1 parent 45f3e90 commit 384a5de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/class-wc-subscription.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ public function update_status( $new_status, $note = '', $manual = false ) {
467467
$end_date = $this->calculate_date( 'end_of_prepaid_term' );
468468

469469
// If there is no future payment and no expiration date set, or the end date is before now, the customer has no prepaid term (this shouldn't be possible as only active subscriptions can be set to pending cancellation and an active subscription always has either an end date or next payment), so set the end date and cancellation date to now
470-
if ( 0 === $end_date || wcs_date_to_time( $end_date ) < time() ) {
470+
if ( 0 == $end_date || wcs_date_to_time( $end_date ) < time() ) {
471471
$cancelled_date = $end_date = current_time( 'mysql', true );
472472
} else {
473473
// the cancellation date is now, and the end date is the end of prepaid term date

0 commit comments

Comments
 (0)