Skip to content

Commit

Permalink
fix: remove soon to expire notice, fix Codeinwp/themeisle#752
Browse files Browse the repository at this point in the history
  • Loading branch information
selul committed Jun 26, 2019
1 parent 2554a4f commit a126225
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/Modules/Licenser.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ function show_notice() {
$status = $this->get_license_status();
$no_activations_string = apply_filters( $this->product->get_key() . '_lc_no_activations_string', 'No activations left for %s !!!. You need to upgrade your plan in order to use %s on more websites. Please ask the %s Staff for more details.' );
$no_valid_string = apply_filters( $this->product->get_key() . '_lc_no_valid_string', 'In order to benefit from updates and support for %s, please add your license code from your <a href="%s" target="_blank">purchase history</a> and validate it <a href="%s">here</a>. ' );
$expiration_string = apply_filters( $this->product->get_key() . '_lc_expiration_string', 'Your license is about to expire for %s. You can go to %s and renew it ' );

// No activations left for this license.
if ( 'valid' != $status && $this->check_activation() ) {
Expand Down Expand Up @@ -203,26 +202,6 @@ function show_notice() {
return false;
}

// Expired and soon to expire license.
if ( 'valid' == $status && $this->check_expiration() ) {
?>
<div class="update-nag">
<p>
<strong>
<?php
echo sprintf(
$expiration_string,
$this->product->get_name() . ' ' . $this->product->get_type(),
'<a href="' . $this->renew_url() . '" target="_blank">' . $this->get_distributor_name() . '</a>'
);
?>
</strong>
</p>
</div>
<?php
return false;
}

return true;
}

Expand Down

0 comments on commit a126225

Please sign in to comment.