Add KB link to the error message "Your MSS key is already used on another site"

MAILPOET-5162
This commit is contained in:
Oluwaseun Olorunsola
2023-10-27 15:32:03 +01:00
committed by Aschepikov
parent a4864f3ade
commit 4dba4f8b6a
3 changed files with 35 additions and 8 deletions

View File

@@ -140,7 +140,7 @@ class Services extends APIEndpoint {
$error = __('Your key is not valid for the MailPoet Sending Service', 'mailpoet');
break;
case Bridge::KEY_ALREADY_USED:
$error = __('Your MailPoet Sending Service key is already used on another site', 'mailpoet');
$error = __('Your MailPoet Sending Service key is already [link]used on another site[/link]', 'mailpoet');
break;
default:
$code = !empty($result['code']) ? $result['code'] : Bridge::CHECK_ERROR_UNKNOWN;
@@ -209,7 +209,7 @@ class Services extends APIEndpoint {
$error = __('Your key is not valid for MailPoet Premium', 'mailpoet');
break;
case Bridge::KEY_ALREADY_USED:
$error = __('Your Premium key is already used on another site', 'mailpoet');
$error = __('Your Premium key is already [link]used on another site[/link]', 'mailpoet');
break;
default:
$code = !empty($result['code']) ? $result['code'] : Bridge::CHECK_ERROR_UNKNOWN;