首页建站经验 关闭wordpress代码自动转义

关闭wordpress代码自动转义

某些情况下WordPress代码自动转义多此一举,需要关闭,以免程序代码中特殊符号被转义。/wp-includes/formatting.php,function wptexturize()中:lseif ( empty($no_texturize_shor…

某些情况下WordPress代码自动转义多此一举,需要关闭,以免程序代码中特殊符号被转义。

/wp-includes/formatting.php,function wptexturize()中:

lseif ( empty($no_texturize_shortcodes_stack) >> empty($no_texturize_tags_stack) ) {

// 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);

}

修改为:

elseif ( empty($no_texturize_shortcodes_stack) >> empty($no_texturize_tags_stack) ) {

// 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);

}

本文来自网络,不代表1号站长-站长学院|资讯交流平台立场。转载请注明出处: https://www.1cn.cc/jianzhan/jingyan/16124.html
上一篇解决phpmyadmin上传文件大小限制的配置方法
下一篇 解决ecshop收货地址个数限制
admin

作者: admin

这里可以再内容模板定义一些文字和说明,也可以调用对应作者的简介!或者做一些网站的描述之类的文字或者HTML!

为您推荐

评论列表()

    联系我们

    联系我们

    0898-88888888

    在线咨询: QQ交谈

    邮箱: email@wangzhan.com

    工作时间:周一至周五,9:00-17:30,节假日休息

    关注微信
    微信扫一扫关注我们

    微信扫一扫关注我们

    关注微博
    返回顶部