禁止wordpress自动将半角转换为全角 禁止全角和半角的转换
禁止wordpress自动将半角转换为全角 禁止全角和半角的转换
发布时间:2016-12-23 来源:查字典编辑
摘要:找到wp-includes/formatting.php文件中//Thisisnotatag,noristhetexturizationdi...

找到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);

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新WordPress学习
热门WordPress学习
CMS教程子分类