From 4b5f044f6b7ff03237d3a05ee7db5c95fbd1fa36 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Tue, 30 Mar 2021 14:20:19 -0300 Subject: [PATCH] Use __() instead of \MailPoet\WP\Functions::__() [MAILPOET-3036] --- lib/Form/Listing/FormListingRepository.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Form/Listing/FormListingRepository.php b/lib/Form/Listing/FormListingRepository.php index 19a4d7dba4..e7f337cd62 100644 --- a/lib/Form/Listing/FormListingRepository.php +++ b/lib/Form/Listing/FormListingRepository.php @@ -5,7 +5,6 @@ namespace MailPoet\Form\Listing; use MailPoet\Entities\FormEntity; use MailPoet\Listing\ListingDefinition; use MailPoet\Listing\ListingRepository; -use MailPoet\WP\Functions as WPFunctions; use MailPoetVendor\Doctrine\ORM\QueryBuilder; class FormListingRepository extends ListingRepository { @@ -29,12 +28,12 @@ class FormListingRepository extends ListingRepository { return [ [ 'name' => 'all', - 'label' => WPFunctions::get()->__('All', 'mailpoet'), + 'label' => __('All', 'mailpoet'), 'count' => $totalCount, ], [ 'name' => 'trash', - 'label' => WPFunctions::get()->__('Trash', 'mailpoet'), + 'label' => __('Trash', 'mailpoet'), 'count' => $trashedCount, ], ];