最近在使用Wordpress的时候发现英文字符连续的两个减号会被替换为略长一些的字符,而结果就是导致部分源码放到wordpress上之后再粘贴就不管用了……
解决的方法是:
1 打开 wp-includes/formatting.php 文件
vi wp-includes/formatting.php
2 修改内容:
/* translators: en dash */
// $en_dash = _x( ‘–’, ‘en dash’ ); //原来的
$en_dash = _x( ‘–‘, ‘en dash’ ); //改为
/* translators: em dash */
//$em_dash = _x( ‘—’, ’em dash’ ); //原来的
$em_dash = _x( ‘—‘, ’em dash’ ); //改为
然而并没有什么卵用,其实装个Quotmarks插件就行了。
评论前必须登录!
注册