这个恶魔的事情,一直影响我的文章的。把文章中"–"自作聪明的换成了"-",实在是太坑爹了,昨天晚上有时间解决了一下。现在所有文章的命令参数都没问题了~
解决办法:
进入到wordpress程序的根目录你会看到wp-includes,进入wp-includes,使用编辑器编辑formatting.php 文件
大概是85~87行有如下代码:
// This is not a tag, nor is the texturization disabled static strings $curl = str_replace($static_characters, $static_replacements, $curl); // regular expressions $curl = preg_replace($dynamic_characters, $dynamic_replacements, $curl);
将其两行代码注释掉:
// This is not a tag, nor is the texturization disabled static strings //$curl = str_replace($static_characters, $static_replacements, $curl); // regular expressions //$curl = preg_replace($dynamic_characters, $dynamic_replacements, $curl);
保存即可
- THE END -
呵呵,不错,我来也