Missing i18n namespace in checkout optin label

This commit is contained in:
Barry Ceelen
2021-01-09 02:20:01 +01:00
committed by Veljko V
parent 03400bc4f7
commit 11c9c3cd93

View File

@ -279,8 +279,8 @@ class Populator {
}
$woocommerceOptinOnCheckout = $this->settings->fetch('woocommerce.optin_on_checkout');
$legacyLabelText = $this->wp->_x('Yes, I would like to be added to your mailing list', "default email opt-in message displayed on checkout page for ecommerce websites");
$currentLabelText = $this->wp->_x('I would like to receive exclusive emails with discounts and product information', "default email opt-in message displayed on checkout page for ecommerce websites");
$legacyLabelText = $this->wp->_x('Yes, I would like to be added to your mailing list', "default email opt-in message displayed on checkout page for ecommerce websites", 'mailpoet');
$currentLabelText = $this->wp->_x('I would like to receive exclusive emails with discounts and product information', "default email opt-in message displayed on checkout page for ecommerce websites", 'mailpoet');
if (empty($woocommerceOptinOnCheckout)) {
$this->settings->set('woocommerce.optin_on_checkout', [
'enabled' => empty($settingsDbVersion), // enable on new installs only