当尝试单击自定义分类法的“添加新设备类型”按钮时,它只是将DOM元素上移到条目列表中,而无法添加实际的术语。这是我的分类代码:
$labels = array(
\'name\' => _x( \'Equipment Types\', \'taxonomy general name\' ),
\'singular_name\' => _x( \'Equipment Type\', \'taxonomy singular name\' ),
\'search_items\' => __( \'Search Equipment Types\' ),
\'all_items\' => __( \'All Equipment Types\' ),
\'parent_item\' => __( \'Parent Equipment Type\' ),
\'parent_item_colon\' => __( \'Parent Equipment Type:\' ),
\'edit_item\' => __( \'Edit Equipment Type\' ),
\'update_item\' => __( \'Update Equipment Type\' ),
\'add_new_item\' => __( \'Add New Equipment Type\' ),
\'new_item_name\' => __( \'New Equipment Type Name\' ),
\'menu_name\' => __( \'Equipment Type\' ),
);
register_taxonomy(\'equipmenttype\',array(\'powerequipment\'), array(
\'hierarchical\' => true,
\'labels\' => $labels,
\'show_ui\' => true,
\'query_var\' => true,
\'rewrite\' => array( \'slug\' => \'power-equipment\' ),
));
这就是编辑器中发生的情况:
我没有使用任何自定义的管理JavaScript,我启用的唯一插件是Akismet和Wordpress导入器。此外,标准类别分类法不会出现此错误。