问题概述
当使用 Table of Contents (TOC) 插件时,您可以翻译诸如Heading text、Show text或Hide text等管理后台字符串,但这些翻译不会显示在前端。
临时解决方法
请在继续操作之前完整备份您的站点。
- 打开 …/wp-content/plugins/table-of-contents-plus/toc.php 文件。
- 找到第 37 行。
- 将替换为
// do the magic $toc_plus = new TOC_Plus();
// do the magic add_action( 'init', 'toc_init' ); function toc_init() { global $toc_plus; $toc_plus = new TOC_Plus(); }