addslashes_gpc( string $gpc )
转换斜线编码。
描述
Slashes will first be removed if magic_quotes_gpc is set, see https://secure.php.net/magic_quotes for more details.
参数
- $gpc
- (string)
(Required)
从 HTTP 请求数据返回的字符串。
返回值
(string) 返回一个转换后的字符串。
源代码
File: wp-includes/formatting.php
function addslashes_gpc($gpc) {
if ( get_magic_quotes_gpc() )
$gpc = stripslashes($gpc);
return wp_slash($gpc);
}
更新日志
Version | 描述 |
---|---|
0.71 | Introduced. |
相关函数
Uses
- wp-includes/formatting.php:wp_slash()
Used By
- wp-includes/class-wp-query.php:WP_Query::get_posts()
你可能对这些文章感兴趣:
- wordpress函数gd_edit_image_support()用法示例
- wordpress函数funky_javascript_callback()用法示例
- wordpress函数funky_javascript_fix()用法示例
- wordpress函数gallery_shortcode()用法示例
- wordpress函数format_to_edit()用法示例
- wordpress函数format_to_post()用法示例
- wordpress函数form_option()用法示例
- wordpress函数force_ssl_login()用法示例
- wordpress函数format_code_lang()用法示例
- wordpress函数format_for_editor()用法示例
- wordpress函数force_ssl_content()用法示例
- wordpress函数flush_rewrite_rules()用法示例
- wordpress函数force_balance_tags()用法示例
- wordpress函数force_ssl_admin()用法示例
如有疑问,请前往问答中心反馈!
反馈