问题是事件调用者是在qtranslate、Tribe\\uu events\\uu Main::instance()之前初始化的:
// let\'s initialize tec silly-early to avoid fatals with upgrades from 3.x to 4.x
add_action( \'plugins_loaded\', array( $this, \'plugins_loaded\' ), 0 );
简单的方法是创建一个名为1fix的插件,其代码为:
add_action( \'plugins_loaded\', \'__fix_tribe_init\', 0 );
function __fix_tribe_init(){
global $locale;
if(preg_match(\'/^\\/ru\\//\',$_SERVER[\'REQUEST_URI\'])) {
$locale = \'ru_RU\';
}
}
这彻底解决了我的问题