因為我有將 define(‘WP_DEBUG’, true); 打開,在進入 WordPress 控制台後,會看到 Crayon Syntax Highlighter 外掛,出現一長串的錯誤警告。
錯誤如下:
更正錯誤:
依照錯誤中指定的路徑,打開 crayon_formatter.class.php 文件並註釋掉以下 2 行:
//$toolbar_height = $font_size * 1.5 . 'px !important;'; //$info_height = $font_size * 1.4 . 'px !important;'; $toolbar_height = $_font_size * 1.5 . 'px !important;'; $info_height = $_font_size * 1.4 . 'px !important;';
修改好後,上傳覆蓋就文件,收工。
//Featured Photo by Michi-Nordlicht on pixabay
Latest posts by yungke (see all)
- WooWP 黑色星期五優惠 - 2020-11-12
- WordPress Multisite 的重定向 Redirect 規則 - 2020-11-02
- 舊 WordPress 安裝 Multisite 子目錄解決方式 - 2020-10-25