Use __ without using the WPFunctions wrapper
MAILPOET-3852
This commit is contained in:
committed by
Veljko V
parent
1cdbf31b50
commit
95f7e427f9
@@ -9,7 +9,6 @@ use MailPoet\Segments\SegmentsRepository;
|
|||||||
use MailPoet\Subscribers\ImportExport\ImportExportFactory;
|
use MailPoet\Subscribers\ImportExport\ImportExportFactory;
|
||||||
use MailPoet\Subscribers\ImportExport\ImportExportRepository;
|
use MailPoet\Subscribers\ImportExport\ImportExportRepository;
|
||||||
use MailPoet\Util\Security;
|
use MailPoet\Util\Security;
|
||||||
use MailPoet\WP\Functions as WPFunctions;
|
|
||||||
use MailPoetVendor\XLSXWriter;
|
use MailPoetVendor\XLSXWriter;
|
||||||
|
|
||||||
class Export {
|
class Export {
|
||||||
@@ -66,7 +65,7 @@ class Export {
|
|||||||
$this->subscriberCustomFields
|
$this->subscriberCustomFields
|
||||||
);
|
);
|
||||||
$this->formattedSubscriberFieldsWithList = $this->formattedSubscriberFields;
|
$this->formattedSubscriberFieldsWithList = $this->formattedSubscriberFields;
|
||||||
$this->formattedSubscriberFieldsWithList[] = WPFunctions::get()->__('List', 'mailpoet');
|
$this->formattedSubscriberFieldsWithList[] = __('List', 'mailpoet');
|
||||||
$this->exportPath = self::getExportPath();
|
$this->exportPath = self::getExportPath();
|
||||||
$this->exportFile = $this->getExportFile($this->exportFormatOption);
|
$this->exportFile = $this->getExportFile($this->exportFormatOption);
|
||||||
$this->exportFileURL = $this->getExportFileURL($this->exportFile);
|
$this->exportFileURL = $this->getExportFileURL($this->exportFile);
|
||||||
|
@@ -157,7 +157,7 @@ class ExportTest extends \MailPoetTest {
|
|||||||
->equals(
|
->equals(
|
||||||
\array_merge(
|
\array_merge(
|
||||||
$this->export->formattedSubscriberFields,
|
$this->export->formattedSubscriberFields,
|
||||||
[\MailPoet\WP\Functions::get()->__('List', 'mailpoet')]
|
[__('List', 'mailpoet')]
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
expect(
|
expect(
|
||||||
|
Reference in New Issue
Block a user