田飞-传播体验设计 nwgale.com
我快要吐血了。
原本以为到了2.7.1时代,这个问题早就解决了吧,没想到,还真的成了一个人人皆知的秘密。
如果你在WP博客里贴了代码,系统会自动将某些 英语标点符号 转换成中文标点符号,这样一来,别人拷贝了你的代码回去之后,立马出错。
所以,注意 一下。
修改WordPress安装目录/wp-includes/formatting.php文件,找到以下4行代码:
// static strings
$curl = str_replace($static_characters, $static_replacements, $curl);
// regular expressions
$curl = preg_replace($dynamic_characters, $dynamic_replacements, $curl);
将这红色两行屏闭掉。方法是在$curl = str_... 之前加上 //, 改后如下
// static strings
//$curl = str_replace($static_characters, $static_replacements, $curl);
// regular expressions
//$curl = preg_replace($dynamic_characters, $dynamic_replacements, $curl);
然后保存好后, 重新刷新你的页面, 那些英文标点就不会在被自动转换为中文标点了.
参考自http://blog.newchen.com/post/371
全角和半角 | 新蜂 Linux
七月 8th, 2010 at 15:55
[...] 方法來源:wordpress,全角与半角,解决。 Tags: WordPress [...]
全角和半角 | Selective Memory
十二月 16th, 2009 at 01:02
[...] 方法來源:wordpress,全角与半角,解决。 04/11/2009 | Tags: WordPress| 2 Comments » [...]
realugboots,jersey,ghd straighteners
十一月 21st, 2009 at 09:40
Originally worn by sheep grazers in order to keep them from catching the
frost on their long days walking, Ugg boots are made of genuine sheepskin such
is their attraction to be worn by many people thought the summer months. Ugg
boots will keep you warm through the winter.
Sheep skin is very soft and that's pink ghd
exactly what Ugg boots are made of, this is why they are so
comfortable and why so many people crave them. Ugg boots are well known all over
thuy chi the world and there
is still some arguments over who started the retailing of these fantastic boots.
Ugg boots started off in Australia and eventually made its way around the
globe providing comfort and warmth to millions. The hair straightners reason
they are called Uggs is because they are traditionally bland looking, usually
only coloured in original sheepskin colouring with no shine like other leather
boots.
Sheep skin itself is a very soft form of ghd
purple fabric so it was originally quite difficult in the early
days to take them off as they moulded to the feet of consumers. A second layer
was added soon after to prevent the boot shaping to the wearers foot.
Even after all these years people are still wearing Ugg boots, and newer
models have been made for stylish looks and feel but they still retain the
traditional ghd hair straightners bland
look as intended. They are so comfortable nowadays that people even wear them
indoors as slipper especially in the winter months as it can be absolutely
freezing and Ugg boots seem to do the job better than anything else, you don't
even have to wear socks with them. In fact because of the indoor wear, Ugg
slippers are now being produced as well as Ugg slip-ons jersey boys all to keep us
warm in the winter months.
[Reply | 回复此评论]
lewanzu
八月 21st, 2009 at 18:18
哦~~原来会被系统自动转换啊,受教了!
[Reply | 回复此评论]