diff --git a/lib/Settings/SettingsController.php b/lib/Settings/SettingsController.php index 3390a27ac9..13e077141f 100644 --- a/lib/Settings/SettingsController.php +++ b/lib/Settings/SettingsController.php @@ -57,7 +57,7 @@ class SettingsController { 'signup_confirmation' => [ 'enabled' => true, 'subject' => sprintf(__('Confirm your subscription to %1$s', 'mailpoet'), WPFunctions::get()->getOption('blogname')), - 'body' => WPFunctions::get()->__("Hello,\n\nWelcome to our newsletter!\n\nPlease confirm your subscription to the list(s): [lists_to_confirm] by clicking the link below: \n\n[activation_link]Click here to confirm your subscription.[/activation_link]\n\nThank you,\n\nThe Team", 'mailpoet'), + 'body' => WPFunctions::get()->__("Hello,\n\nWelcome to our newsletter!\n\nPlease confirm your subscription to our list by clicking the link below: \n\n[activation_link]I confirm my subscription![/activation_link]\n\nThank you,\n\nThe Team", 'mailpoet'), ], 'tracking' => [ 'enabled' => true, diff --git a/tests/DataFactories/Settings.php b/tests/DataFactories/Settings.php index 951a18c33f..43acfdbd5c 100644 --- a/tests/DataFactories/Settings.php +++ b/tests/DataFactories/Settings.php @@ -29,7 +29,7 @@ class Settings { function withConfirmationEmailBody($body = null) { if ($body === null) { - $body = "Hello,\n\nWelcome to our newsletter!\n\nPlease confirm your subscription to the list(s): [lists_to_confirm] by clicking the link below: \n\n[activation_link]Click here to confirm your subscription.[/activation_link]\n\nThank you,\n\nThe Team"; + $body = "Hello,\n\nWelcome to our newsletter!\n\nPlease confirm your subscription to our list by clicking the link below: \n\n[activation_link]I confirm my subscription![/activation_link]\n\nThank you,\n\nThe Team"; } $this->settings->set('signup_confirmation.body', $body); return $this; diff --git a/tests/_data/acceptanceDump.sql b/tests/_data/acceptanceDump.sql index 352cb55895..8fb5780e78 100644 --- a/tests/_data/acceptanceDump.sql +++ b/tests/_data/acceptanceDump.sql @@ -380,7 +380,7 @@ INSERT INTO `mp_mailpoet_settings` (`id`, `name`, `value`, `created_at`, `update (15, 'reply_to', 'a:2:{s:4:\"name\";s:0:\"\";s:7:\"address\";s:0:\"\";}', '2017-10-30 00:58:13', '2017-10-30 00:58:13'), (16, 'notification', 'a:1:{s:7:\"address\";s:0:\"\";}', '2017-10-30 00:58:13', '2017-10-30 00:58:13'), (17, 'subscribe', 'a:1:{s:10:\"on_comment\";a:1:{s:5:\"label\";s:32:\"Yes, add me to your mailing list\";}}', '2017-10-30 00:58:13', '2017-10-30 00:58:13'), -(18, 'signup_confirmation', 'a:5:{s:7:\"enabled\";s:1:\"1\";s:4:\"from\";a:2:{s:4:\"name\";s:0:\"\";s:7:\"address\";s:0:\"\";}s:8:\"reply_to\";a:2:{s:4:\"name\";s:0:\"\";s:7:\"address\";s:0:\"\";}s:7:\"subject\";s:29:\"Confirm your subscription to \";s:4:\"body\";s:253:\"Hello!\r\n\r\nHurray! You\'ve subscribed to our site.\r\n\r\nPlease confirm your subscription to the list(s): [lists_to_confirm] by clicking the link below: \r\n\r\n[activation_link]Click here to confirm your subscription.[/activation_link]\r\n\r\nThank you,\r\n\r\nThe Team\";}', '2017-10-30 00:58:13', '2017-10-30 00:58:13'), +(18, 'signup_confirmation', 'a:5:{s:7:\"enabled\";s:1:\"1\";s:4:\"from\";a:2:{s:4:\"name\";s:0:\"\";s:7:\"address\";s:0:\"\";}s:8:\"reply_to\";a:2:{s:4:\"name\";s:0:\"\";s:7:\"address\";s:0:\"\";}s:7:\"subject\";s:29:\"Confirm your subscription to \";s:4:\"body\";s:216:\"Hello!\r\n\r\nHurray! You\'ve subscribed to our site.\r\n\r\nPlease confirm your subscription to our list by clicking the link below: \r\n\r\n[activation_link]I confirm my subscription![/activation_link]\r\n\r\nThank you,\r\n\r\nThe Team\";}', '2017-10-30 00:58:13', '2017-10-30 00:58:13'), (19, 'bounce', 'a:1:{s:7:\"address\";s:0:\"\";}', '2017-10-30 00:58:13', '2017-10-30 00:58:13'), (20, 'cron_trigger', 'a:1:{s:6:\"method\";s:9:\"WordPress\";}', '2017-10-30 00:58:13', '2017-10-30 00:58:13'), (21, 'tracking', 'a:1:{s:7:\"enabled\";s:1:\"1\";}', '2017-10-30 00:58:13', '2017-10-30 00:58:13'),