禁止wordpress自动将半角转换为全角 禁止全角和半角的转换
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>找到wp-includes/formatting.php文件中<br>
</p>
<div style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
<div style="margin: 0px; padding: 0px; outline: none; float: right; line-height: 25.2px; font-size: 14px;">
<span style="line-height: 25.2px; cursor: pointer;"><u>复制代码</u></span>
</div>
代码如下:</div>
<div id="phpcode2" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
<br>
// This is not a tag, nor is the texturization disabled static strings<br>
$curl = str_replace($static_characters, $static_replacements, $curl);<br>
//regular expressions<br>
$curl = preg_replace($dynamic_characters, $dynamic_replacements, $curl);</div>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
将两行替换函数代码加上注释,<span style="line-height: 21px; background-color: rgb(229, 226, 192); font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-family: simsun; color: rgb(70, 70, 70); text-size-adjust: auto;">在前面加上<span style="line-height: 25.2px;"> </span></span><span style="line-height: 21px; background-color: rgb(229, 226, 192); font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-family: simsun; word-wrap: normal; color: rgb(255, 0, 0); word-break: normal; text-size-adjust: auto;">//</span>:</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
</p>
<div style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
<div style="margin: 0px; padding: 0px; outline: none; float: right; line-height: 25.2px; font-size: 14px;">
<span style="line-height: 25.2px; cursor: pointer;"><u>复制代码</u></span>
</div>
代码如下:</div>
<div id="phpcode3" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
<br>
// This is not a tag, nor is the texturization disabled static strings<br>
// $curl = str_replace($static_characters, $static_replacements, $curl);<br>
// regular expressions<br>
// $curl = preg_replace($dynamic_characters, $dynamic_replacements, $curl);</div>
頁:
[1]