- 状态
- 已解决
- 相关插件/主题
- The Events Calendar
问题概述
在更新 The Events Calendar 插件后,部分用户可能会看到错误语言的字符串。

临时解决方法
此问题将在 The Events Calendar 插件的下一次更新中修复。
在此期间,您可以按照以下步骤解决该问题:
请确保您已对 WordPress 文件和数据库进行了完整备份。
修改 /plugins/the-events-calendar/src/Tribe/I18n.php 的第 189 行
将
remove_filter( 'locale', $force_locale );
修改为
remove_filter( 'locale', $force_locale );
foreach ( (array) $args[1] as $domain => $file ) {
// Reload it with the correct language.
unload_textdomain( $domain );
if ( 'default' === $domain ) {
load_default_textdomain();
} else {
Common::instance()->load_text_domain( $domain, $file );
}
}