Add rel="noopener noreferrer" to links

[MAILPOET-1787]
This commit is contained in:
Ján Mikláš
2019-02-21 15:01:39 +01:00
committed by M. Shull
parent a79b60b17a
commit 5c78028232

View File

@ -62,6 +62,7 @@ class MailPoetMapper {
array( array(
'class' => 'button button-primary', 'class' => 'button button-primary',
'target' => '_blank', 'target' => '_blank',
'rel' => 'noopener noreferrer',
) )
); );
$message .= ' &nbsp; <button class="button js-button-resume-sending">' . __('Resume sending', 'mailpoet') . '</button>'; $message .= ' &nbsp; <button class="button js-button-resume-sending">' . __('Resume sending', 'mailpoet') . '</button>';
@ -71,7 +72,10 @@ class MailPoetMapper {
$message = Helpers::replaceLinkTags( $message = Helpers::replaceLinkTags(
__('You currently are not permitted to send any emails with MailPoet Sending Service, which may have happened due to poor deliverability. Please [link]contact our support team[/link] to resolve the issue.', 'mailpoet'), __('You currently are not permitted to send any emails with MailPoet Sending Service, which may have happened due to poor deliverability. Please [link]contact our support team[/link] to resolve the issue.', 'mailpoet'),
'https://www.mailpoet.com/support/', 'https://www.mailpoet.com/support/',
array('target' => '_blank') array(
'target' => '_blank',
'rel' => 'noopener noreferrer',
)
); );
} }
break; break;