Stub for _x() function

[MAILPOET-4524]
This commit is contained in:
David Remer 2022-08-04 15:34:58 +03:00 committed by Veljko V
parent 402cf63e6b
commit 54a721b751

View File

@ -5,6 +5,11 @@ if (!function_exists('__')) {
return $text;
}
}
if (!function_exists('_x')) {
function _x($text, $context, $domain) {
return $text;
}
}
// Fix for mocking WPFunctions
// [PHPUnit\Framework\Exception] Use of undefined constant OBJECT - assumed 'OBJECT' (this will throw an Error in a future version of PHP)