Skip to content

Commit ad1ce45

Browse files
fajardoleoswashata
authored andcommitted
[license] [php-8.1] Also fixed an issue with the logic that checks, using a license entity, whether the associated first payment is pending.
1 parent 3f436e5 commit ad1ce45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

includes/entities/class-fs-plugin-license.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,10 @@ function is_features_enabled() {
289289
* @return bool
290290
*/
291291
function is_first_payment_pending() {
292+
if ( $this->is_lifetime() ) {
293+
return false;
294+
}
295+
292296
return ( WP_FS__TIME_24_HOURS_IN_SEC >= strtotime( $this->expiration ) - strtotime( $this->created ) );
293297
}
294298

0 commit comments

Comments
 (0)