解決 Crayon Syntax Highlighter code 的錯誤

·

因為我有將 define(‘WP_DEBUG’, true); 打開,在進入 WordPress 控制台後,會看到 Crayon Syntax Highlighter 外掛,出現一長串的錯誤警告。

錯誤如下:

Crayon Syntax Highlighter ERROR

更正錯誤:

依照錯誤中指定的路徑,打開 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;';

修改好後,上傳覆蓋就文件,收工。

hosted by kinsta

Comments

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

Hey, 想嘗試 Kinsta 主機嗎?

18748

Kinsta 高效能主機

wPowered Starter 方案

馬上訂購

18749
Your Mastodon Instance