手机
当前位置:查字典教程网 >CMS教程 >WordPress >禁止wordpress自动将半角转换为全角 禁止全角和半角的转换
禁止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文章标题为空时其它内容代替的方法

WordPress中的__()和_e()函数的作用介绍

wordpress get_posts函数的使用方法 禁止输出指定类别的文章

WordPress文章ID不连续的解决方法

在wordpress可视化编辑器中输入带缩进的代码

wordpress主题评论中添加回复的方法

Wordpress更换主题之后出错的解决方法

WordPress文章标题链接添加正在加载中提示的方法

WordPress 防止恶意评论的方法

wordpress编辑器中添加链接功能自动加入nofollow的方法

精品推荐
分类导航