Remove WP\Functions::__ and other translate functions
Under the new sniffer rules, those functions produce errors and, when those methods are used, the sniffer can not properly be applied. [MAILPOET-4524]
This commit is contained in:
@ -6,7 +6,6 @@ use MailPoet\API\JSON\Endpoint as APIEndpoint;
|
||||
use MailPoet\API\JSON\Error as APIError;
|
||||
use MailPoet\Config\AccessControl;
|
||||
use MailPoet\Settings\UserFlagsController;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class UserFlags extends APIEndpoint {
|
||||
|
||||
@ -28,7 +27,7 @@ class UserFlags extends APIEndpoint {
|
||||
return $this->badRequest(
|
||||
[
|
||||
APIError::BAD_REQUEST =>
|
||||
WPFunctions::get()->__('You have not specified any user flags to be saved.', 'mailpoet'),
|
||||
__('You have not specified any user flags to be saved.', 'mailpoet'),
|
||||
]);
|
||||
} else {
|
||||
foreach ($flags as $name => $value) {
|
||||
|
Reference in New Issue
Block a user