你的分享就是我们的动力 ---﹥

禁止wordpress自动将半角转换为全角 禁止全角和半角的转换

时间:2015-11-24 20:52来源:www.chengxuyuans.com 点击:

找到wp-includes/formatting.php文件中

代码如下:

// 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);

转载注明地址:http://www.chengxuyuans.com/cms/WordPress/96764.html

推荐文章