收集一波常见的加速NPM包的CDN,发现有些还是挺好用的,基本上可以替代unpkg、jsdelivr,用来做博客或者网站加载NPM使用还是可以的。......
禁止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);
以上方法由办公区教程网编辑摘抄整理自互联网可供大家参考!
相关文章
- 详细阅读
-
WordPress网站文章ID不连续如何解决?笔记已测试详细阅读
对于WordPress网站文章ID不连续的问题困扰了我很久,今天将WordPress文章ID不连续的原因和具体解决办法做详细的说明。 WordPress文章ID不连续的原因: 用WordPress做网站的站......
2023-08-17 24
-
wordpress建站教程:文章自动调用特色图片详细阅读
继续分享wordpress建站教程。我们在日常更新wordpress网站文章时基本都需要手动添加文章的缩略图,一般是根据文章内容来添加,虽然麻烦一点,但效果更好,对普通的企业wordpress外......
2023-08-14 66