Fix button link in deprecated shortcodes notice [MAILPOET-3345]

This commit is contained in:
wxa
2020-12-28 10:51:06 +03:00
committed by Veljko V
parent 05812de89c
commit 518c627927

View File

@@ -40,13 +40,10 @@ class DeprecatedShortcodeNotice {
public function display() {
$errorString = __('MailPoet recently changed how custom email shortcodes work, you may need to update your custom shortcodes.', 'mailpoet');
$getInTouchString = __('[link]See the documentation for necessary changes[/link]', 'mailpoet');
$error = Helpers::replaceLinkTags($errorString, 'https://kb.mailpoet.com/article/160-create-a-custom-shortcode', [
$linkString = __('[link]See the documentation for necessary changes[/link]', 'mailpoet');
$error = $errorString . '<br><br>' . Helpers::replaceLinkTags($linkString, 'https://kb.mailpoet.com/article/160-create-a-custom-shortcode', [
'target' => '_blank',
'data-beacon-article' => '581f6faac697914aa838044f',
]);
$error .= '<br><br>' . Helpers::replaceLinkTags($getInTouchString, 'https://www.mailpoet.com/let-us-handle-your-php-upgrade/', [
'target' => '_blank',
'class' => 'mailpoet-button mailpoet-button-small',
]);