Use __ without using the WPFunctions wrapper

MAILPOET-3852
This commit is contained in:
oluwaseun Olorunsola
2021-10-28 13:35:16 +01:00
committed by Veljko V
parent 1cdbf31b50
commit 95f7e427f9
2 changed files with 2 additions and 3 deletions

View File

@@ -9,7 +9,6 @@ use MailPoet\Segments\SegmentsRepository;
use MailPoet\Subscribers\ImportExport\ImportExportFactory;
use MailPoet\Subscribers\ImportExport\ImportExportRepository;
use MailPoet\Util\Security;
use MailPoet\WP\Functions as WPFunctions;
use MailPoetVendor\XLSXWriter;
class Export {
@@ -66,7 +65,7 @@ class Export {
$this->subscriberCustomFields
);
$this->formattedSubscriberFieldsWithList = $this->formattedSubscriberFields;
$this->formattedSubscriberFieldsWithList[] = WPFunctions::get()->__('List', 'mailpoet');
$this->formattedSubscriberFieldsWithList[] = __('List', 'mailpoet');
$this->exportPath = self::getExportPath();
$this->exportFile = $this->getExportFile($this->exportFormatOption);
$this->exportFileURL = $this->getExportFileURL($this->exportFile);