给转义的字符串添加 /
如果 php 中设置了 magic-quotes-gpc,首先把所有 / 删除。
用法
参数
$gpc
(string) (required) http 请求数据中返回的字符串
default: 无
返回值
(string)
返回使用 / 转义之后的字符串。
注解
- 使用到的全局变量: (object) $wpdb
修改记录
since: 0.71
源文件
wp-includes/formatting.php
给转义的字符串添加 /
如果 php 中设置了 magic-quotes-gpc,首先把所有 / 删除。
$gpc
(string) (required) http 请求数据中返回的字符串
default: 无
(string)
返回使用 / 转义之后的字符串。
since: 0.71
wp-includes/formatting.php