Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:add_magic_quotes

WordPress 函数:add_magic_quotes

过滤数组中的每一个元素,并且可以递归过滤。 用法 <?php add_magic_quotes( $array ) ?> 参数 $array (array) (required) 需要过滤的数组。 Defau…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:addslashes_gpc

WordPress 函数:addslashes_gpc

给转义的字符串添加 / 如果 PHP 中设置了 magic-quotes-gpc,首先把所有 / 删除。 用法 <?php addslashes_gpc( $gpc ) ?> 参数 $gpc (string)…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:wp_kses_version

WordPress 函数:wp_kses_version

这个函数返回当前版本 WordPress 使用的 KSES 的版本号。 用法 <?php wp_kses_version() ?> 参数 None 返回值 (string) KSES 版本号 修改记录 Sin…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:wp_kses_stripslashes

WordPress 函数:wp_kses_stripslashes

去掉引号前面的斜线。 这个函数只是将 \" 改成呢 ",然后不处理其他斜线,这样看起来很奇怪,这是因为 preg_replace(//e) 中的引号需要这样处理。 用法 <?php wp_kses_stripsla…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:wp_kses_split2

WordPress 函数:wp_kses_split2

wp_kses_split()调用它用来修正格式错误的 HTML 标签。 它摒弃了一些非常畸形的标签,如<:::>,如果 HTML 元素不被允许,就返回一个空字符串,否则,这个元素将被分拆成元素和它的属性列表…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:wp_kses_split

WordPress 函数:wp_kses_split

搜索 HTML 标签,无论多么畸形。 也会匹配单独的 ">" 字符。 用法 <?php wp_kses_split( $string, $allowed_html, $allowed_protocols ) …


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:wp_kses_no_null

WordPress 函数:wp_kses_no_null

删除 $string 中所有的 NULL 字符串。 用法 <?php wp_kses_no_null( $string ) ?> 参数 $string (string) (required) Default:…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:wp_kses_normalize_entities2

WordPress 函数:wp_kses_normalize_entities2

wp_kses_normalize_entities()中的正则表达式回调函数。 这个函数保证 wp_kses_normalize_entities() 对于 &#number; 类型的实体只接受 16 位的值。…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:wp_kses_normalize_entities

WordPress 函数:wp_kses_normalize_entities

转换和修正 HTML 实体。 这个函数恢复正常的 HTML 实体,它把 'AT&T' 转换成正确的 'AT&amp;T', '&#00058;' => '&#58;', '&…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:wp_kses_js_entities

WordPress 函数:wp_kses_js_entities

移除在早期 Netscape 4 浏览器中发现的 HTML JavaScript 实体。 用法 <?php wp_kses_js_entities( $string ) ?> 参数 $string (stri…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:wp_kses_html_error

WordPress 函数:wp_kses_html_error

处理 wp_kses_hair() 中的解析错误。 用法 <?php wp_kses_html_error( $string ) ?> 参数 $string (string) (required) Defau…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:wp_kses_hook

WordPress 函数:wp_kses_hook

通过这个函数添加任意的 kses hook。 目前唯一的一个 kses WordPress hook 就是这里调用的,所有的参数都会传递给 pre_kses 这个 hook,并且返回的是字符串。 用法 <?php …


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:wp_kses_hair

WordPress 函数:wp_kses_hair

通过一个含有属性的字符创中创建一个属性列表。 这个函数完成很多工作,它将属性列表解析到一个含有属性数据的数组中,并且修正它们,它会将没有引号的属性加上引号,使得生成的 HTML 代码更加符合 W3C 的 HTML 规范,…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:wp_kses_decode_entities

WordPress 函数:wp_kses_decode_entities

将所有的实体转换成其对应的字符。 这个函数解码所有的数字型的 HTML 实体(如 &#65; 和 &#x41;),其他的 HTML 实体(如 &auml;)不进行处理,因为我们在 URL 协议的白…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:wp_kses_check_attr_val

WordPress 函数:wp_kses_check_attr_val

执行属性值的差异性检查。 目前实现的检查是 'maxlen', 'minlen', 'maxval', 'minval' 和 'valueless',以后会有更多。 用法 <?php wp_kses_check_a…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:wp_kses_bad_protocol_once2

WordPress 函数:wp_kses_bad_protocol_once2

这个函数用于 wp_kses_bad_protocol_once() 中正则表达式的回调函数。 它主要处理 URL 协议,检查是否在白名单中,并且根据答案返回不同的数据。 用法 <?php wp_kses_bad_…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:wp_kses_bad_protocol_once

WordPress 函数:wp_kses_bad_protocol_once

清理字符串,删除错误的 URL 协议和其他字符。 这个函数删除 $string 开头的不允许的协议,它会忽略空格和处理 HTML 实体。 用法 <?php wp_kses_bad_protocol_once( $s…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:wp_kses_bad_protocol

WordPress 函数:wp_kses_bad_protocol

清理字符串,删除错误的 URL 协议。 这个函数删除 $string 开头的不允许的协议,它会忽略空格和字符的大小写,和能够处理 HTML 实体。并且它是在一个 While 循环中运行,所以不会被 'javascript…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:wp_kses_attr

WordPress 函数:wp_kses_attr

删除当前元素所有不允许的属性。 它会调用wp_kses_hair()进一步将属性分开,然后使用 wp_kses_hair()的返回值构建新的 HTML 代码。 它会删除任何多余的 '<' 和 '>' 字符,另…


Warning: Trying to access array offset on value of type bool in /www/wwwroot/xiaoyi.vc/wp-content/themes/kratos-pjax-master/inc/imgcfg.php on line 64
WordPress 函数:wp_kses_array_lc

WordPress 函数:wp_kses_array_lc

将一个数组的所有 key 都转换成小写字母。 用法 <?php wp_kses_array_lc( $inarray ) ?> 参数 $inarray (array) (required) 未过滤的数组 De…