WPML
状态
已解决
报告针对
WPML Multilingual CMS 4.5.5
解决于
4.5.6

问题概述

如果您前往 WPML设置页面,并尝试在自定义术语元数据翻译部分进行搜索或使用分页,它将无法正常工作。如果您检查浏览器控制台,您会看到一个 JS 错误:

Cannot read properties of null (reading ‘checked’)

临时解决方法

请在继续操作之前对您的站点进行完整备份


  1. 打开 wp-content/plugins/sitepress-multilingual-cms/classes/menu/mcsetup/class-wpml-tm-mcs-custom-field-settings-menu.php

  2. 找到第 120 行。

  3. 将:
    						if ( esc_attr( $this->kind_shorthand() ) === 'cf' ) {


  4. 替换为:
    						if ( esc_attr( $this->kind_shorthand() ) === 'cf' || esc_attr( $this->kind_shorthand() ) === 'tcf' ) {

所有已知问题 →