Skip to content

Commit

Permalink
fix spelling in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoo committed Mar 13, 2024
1 parent 3610d97 commit fbe2b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wcs-importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ public static function import_subscription( $data ) {
'created_via' => 'importer',
'customer_note' => ( ! empty( $data[ self::$fields['customer_note'] ] ) ) ? $data[ self::$fields['customer_note'] ] : '',
'currency' => ( ! empty( $data[ self::$fields['order_currency'] ] ) ) ? $data[ self::$fields['order_currency'] ] : '',
'status' => in_array( $status, wcs_get_subscription_ended_statuses() ) ? $status : 'pending', // Subsciption must be in pending status to auto-calculate next_payment_date, but must be a non-active status in order to apply a past end_date.
'status' => in_array( $status, wcs_get_subscription_ended_statuses() ) ? $status : 'pending', // Subscription must be in pending status to auto-calculate next_payment_date, but must be a non-active status in order to apply cancelled_date and end_date.
)
);

Expand Down

0 comments on commit fbe2b7c

Please sign in to comment.