Fix WordPress.WP.I18n.NonSingularStringLiteralText errors

[MAILPOET-4524]
This commit is contained in:
David Remer
2022-08-04 13:37:29 +03:00
committed by Veljko V
parent 218de96024
commit 76048224d1
9 changed files with 33 additions and 28 deletions

View File

@ -247,7 +247,7 @@ class SubscriberSaveController {
$existingSubscriber = $this->subscribersRepository->findOneBy(['email' => $email]);
if ($existingSubscriber) {
// translators: %s is email address which already exists.
$exceptionMessage = __(sprintf('A subscriber with E-mail "%s" already exists.', $email), 'mailpoet');
$exceptionMessage = sprintf(__('A subscriber with E-mail "%s" already exists.', 'mailpoet'), $email);
throw new ConflictException($exceptionMessage);
}
}