一、通過修改主題functions.php實(shí)現(xiàn)(推薦使用):
在主題functions.php文件中加入以下代碼:
/*禁用半角引號(hào)自動(dòng)轉(zhuǎn)換為全角引號(hào)*/
remove_filter('the_content','wptexturize');
二、通過修改WP源文件實(shí)現(xiàn):
注釋掉 wp-includes\formatting.php文件的下列兩行代碼即可
$curl = str_replace($static_characters, $static_replacements, $curl);
$curl = preg_replace($dynamic_characters, $dynamic_replacements, $curl);