Skip to content

Commit

Permalink
setting next_deactivate to now if debug only
Browse files Browse the repository at this point in the history
  • Loading branch information
froger-me committed Jan 10, 2024
1 parent cfb1204 commit c544284
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions inc/class-wppus-license-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,7 @@ public function deactivate( $license_data ) {

if ( empty( $result ) ) {
$data = isset( $license->data ) ? $license->data : array();
$data['next_deactivate'] = time() + MONTH_IN_SECONDS;
$data['next_deactivate'] = time();
$data['next_deactivate'] = (bool) ( constant( 'WP_DEBUG' ) ) ? time() : time() + MONTH_IN_SECONDS;
$allowed_domains = array_diff( $license->allowed_domains, $license_data['allowed_domains'] );
$payload = array(
'id' => $license->id,
Expand Down

0 comments on commit c544284

Please sign in to comment.