在/wp-content/plugins/qtranslate/qtranslate\\u wphacks中。php,第89行,更改如下:
// do some crazy js to alter the admin view
$content .="<script type=\\"text/javascript\\">\\n// <![CDATA[\\n";
$content .="function qtrans_editorInit1() {\\n";
// include needed js functions
$content .= $q_config[\'js\'][\'qtrans_is_array\'];
$content .= $q_config[\'js\'][\'qtrans_xsplit\'];
$content .= $q_config[\'js\'][\'qtrans_split\'];
$content .= $q_config[\'js\'][\'qtrans_integrate\'];
$content .= $q_config[\'js\'][\'qtrans_use\'];
$content .= $q_config[\'js\'][\'qtrans_switch\'];
$content .= $q_config[\'js\'][\'qtrans_assign\'];
$content .= $q_config[\'js\'][\'qtrans_save\'];
$content .= $q_config[\'js\'][\'qtrans_integrate_title\'];
$content .= $q_config[\'js\'][\'qtrans_get_active_language\'];
$content .= $q_config[\'js\'][\'qtrans_hook_on_tinyMCE\'];
// insert language, visual and html buttons
对此:
// do some crazy js to alter the admin view
$content .="<script type=\\"text/javascript\\">\\n// <![CDATA[\\n";
// include needed js functions
$content .= $q_config[\'js\'][\'qtrans_is_array\'];
$content .= $q_config[\'js\'][\'qtrans_xsplit\'];
$content .= $q_config[\'js\'][\'qtrans_split\'];
$content .= $q_config[\'js\'][\'qtrans_integrate\'];
$content .= $q_config[\'js\'][\'qtrans_use\'];
$content .= $q_config[\'js\'][\'qtrans_assign\'];
$content .= $q_config[\'js\'][\'qtrans_save\'];
$content .= $q_config[\'js\'][\'qtrans_integrate_title\'];
$content .= $q_config[\'js\'][\'qtrans_get_active_language\'];
$content .= $q_config[\'js\'][\'qtrans_hook_on_tinyMCE\'];
$content .="function qtrans_editorInit1() {\\n";
$content .= $q_config[\'js\'][\'qtrans_switch\'];
// insert language, visual and html buttons
我基本上只是对一些javascript代码重新排序,以便在实际调用qTranslate js函数之前定义它们。这可以防止他们在编辑帖子时出错,我认为这是问题的根源。这为我解决了删除段落的问题。不需要其他修复。
我猜最新的WP更新对WP admin中javascript的显示方式做了一些内部更改,这打乱了qTranslate(黑客)插入javascript的方式顺序,因此一些函数在定义之前就被调用了。
Update:此处提供了一些其他修复程序:http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=2841&sid=3ba1e915e737302449d22837aaf853d2&start=180#p10352