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:
@@ -15,7 +15,7 @@ class RetroComputingMagazine {
|
||||
|
||||
public function get() {
|
||||
return [
|
||||
'name' => WPFunctions::get()->__("Retro Computing Magazine", 'mailpoet'),
|
||||
'name' => __("Retro Computing Magazine", 'mailpoet'),
|
||||
'categories' => json_encode(['standard', 'all']),
|
||||
'readonly' => 1,
|
||||
'thumbnail' => $this->getThumbnail(),
|
||||
@@ -160,7 +160,7 @@ class RetroComputingMagazine {
|
||||
0 =>
|
||||
[
|
||||
'type' => 'header',
|
||||
'text' => '<p><span style="color: #ffffff;"><a href="[link:newsletter_view_in_browser_url]" style="color: #ffffff;">'.WPFunctions::get()->__("View this in your browser.", 'mailpoet').'</a></span></p>',
|
||||
'text' => '<p><span style="color: #ffffff;"><a href="[link:newsletter_view_in_browser_url]" style="color: #ffffff;">'.__("View this in your browser.", 'mailpoet').'</a></span></p>',
|
||||
'styles' =>
|
||||
[
|
||||
'block' =>
|
||||
@@ -589,7 +589,7 @@ class RetroComputingMagazine {
|
||||
3 =>
|
||||
[
|
||||
'type' => 'footer',
|
||||
'text' => '<p><a href="[link:subscription_unsubscribe_url]">'.WPFunctions::get()->__("Unsubscribe", 'mailpoet').'</a> | <a href="[link:subscription_manage_url]">'.WPFunctions::get()->__("Manage your subscription", 'mailpoet').'</a><br />'.WPFunctions::get()->__("Add your postal address here!", 'mailpoet').'</p>',
|
||||
'text' => '<p><a href="[link:subscription_unsubscribe_url]">'.__("Unsubscribe", 'mailpoet').'</a> | <a href="[link:subscription_manage_url]">'.__("Manage your subscription", 'mailpoet').'</a><br />'.__("Add your postal address here!", 'mailpoet').'</p>',
|
||||
'styles' =>
|
||||
[
|
||||
'block' =>
|
||||
|
Reference in New Issue
Block a user