1. 首页 > CMS系统 > Wordpress

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

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

本文由主机测评网发布,不代表主机测评网立场,转载联系作者并注明出处:https://zhuji.jb51.net/wordpress/7703.html

联系我们

在线咨询:点击这里给我发消息

微信号:

工作日:8:30-17:30,节假日休息