Fix store sale eligibility comments to correct intent

This commit is contained in:
Eric Jinks 2022-05-10 10:00:06 +10:00
parent 68142596bb
commit ef25a3180c
No known key found for this signature in database
GPG Key ID: 22C09ACBC4DC9279
1 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ class WcPaySubscriptionsPage {
}
/**
* Returns true if the store has an order completed within the last 30 days.
* Returns true if the store has an order that has been paid within the last 30 days.
*
* @return bool
*/
@ -144,7 +144,7 @@ class WcPaySubscriptionsPage {
return 'yes' === $is_eligible;
}
// Get a single order that was marked as completed within the last 30 days.
// Get a single order that has been paid within the last 30 days.
$orders = wc_get_orders(
array(
'date_paid' => '>' . strtotime( '-30 days' ),