Background of the issue:
I am trying to fix an issue that occurs after updating the WPML String translation plugin. The function fallbackDefaultTranslations() in the file /wpml-string-translation/classes/MO/Hooks breaks websites that have 'mo' in the domain name. The code is intended to load custom translations when WordPress version is greater than 6.6.999, but it seems to fail under certain conditions.
Symptoms:
The website breaks if the domain contains the string 'mo'.
thank you for your report. I’ve reviewed the code and have escalated the issue to our development team. I’ll keep you updated and let you know as soon as we receive any feedback.
We’ve reviewed the issue, and generally, it should not cause any problems. The l10n.php files are generated from the corresponding .mo files, so this would only become an issue if a .php file exists without its corresponding .mo file.
That said, we’ll continue investigating to ensure we don’t rely solely on the presence of the .mo file.
Could it be that the .mo file was deleted, leaving the corresponding .l10n.php files behind? This might be the root of the issue.