Update invalid key message
[PREMIUM-28]
This commit is contained in:
@@ -70,12 +70,20 @@ class ServicesChecker {
|
|||||||
|| $premium_key['state'] === Bridge::KEY_ALREADY_USED
|
|| $premium_key['state'] === Bridge::KEY_ALREADY_USED
|
||||||
) {
|
) {
|
||||||
if($display_error_notice) {
|
if($display_error_notice) {
|
||||||
|
$errorString = __('[link1]Register[/link1] your copy of the MailPoet Premium plugin to receive access to automatic upgrades and support. Need a license key? [link2]Purchase one now.[/link2]', 'mailpoet');
|
||||||
$error = Helpers::replaceLinkTags(
|
$error = Helpers::replaceLinkTags(
|
||||||
__('Warning! Your License Key is either invalid or expired. [link]Renew your License now[/link] to enjoy automatic updates and Premium support.', 'mailpoet'),
|
$errorString,
|
||||||
'https://account.mailpoet.com',
|
'admin.php?page=mailpoet-settings#premium',
|
||||||
array('target' => '_blank')
|
array(),
|
||||||
|
'link1'
|
||||||
);
|
);
|
||||||
WPNotice::displayError($error);
|
$error = Helpers::replaceLinkTags(
|
||||||
|
$error,
|
||||||
|
'admin.php?page=mailpoet-premium',
|
||||||
|
array(),
|
||||||
|
'link2'
|
||||||
|
);
|
||||||
|
WPNotice::displayWarning($error);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
} elseif($premium_key['state'] === Bridge::KEY_EXPIRING
|
} elseif($premium_key['state'] === Bridge::KEY_EXPIRING
|
||||||
|
Reference in New Issue
Block a user