禁止wordpress自动将半角转换为全角 禁止全角和半角的转换
摘要:找到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编辑器中添加链接功能自动加入nofollow的方法
★ wordpress全局变量$wpdb初始化并声明为全局变量的方法
★ wordpress固定链接翻译插件 自动将标题翻译成英文