allowed_http_request_hosts( bool $is_external, string $host )
Whitelists allowed redirect hosts for safe HTTP requests as well.
描述
Attached to the ‘http_request_host_is_external’ filter.
参数
- $is_external
-
(bool)
(Required) - $host
-
(string)
(Required)
返回值
(bool)
源代码
File: wp-includes/http.php
function allowed_http_request_hosts( $is_external, $host ) {
if ( ! $is_external && wp_validate_redirect( 'http://' . $host ) )
$is_external = true;
return $is_external;
}
更新日志
Version | 描述 |
---|---|
3.6.0 | Introduced. |
相关函数
Uses
-
wp-includes/pluggable.php:
wp_validate_redirect()
User Contributed Notes
你可能对这些文章感兴趣:
- wordpress函数floated_admin_avatar()用法示例
- wordpress函数category_description()用法示例
- wordpress函数attachment_submitbox_metadata()用法示例
- wordpress函数attachment_id3_data_meta_box()用法示例
- wordpress函数atom_site_icon()用法示例
- wordpress函数atom_enclosure()用法示例
- wordpress函数array_replace_recursive()用法示例
- wordpress函数apply_filters_ref_array()用法示例
- wordpress函数apply_filters_deprecated()用法示例
- wordpress函数apache_mod_loaded()用法示例
- wordpress函数antispambot()用法示例
- wordpress函数allow_subdomain_install()用法示例
- wordpress函数allow_subdirectory_install()用法示例
- wordpress函数allowed_tags()用法示例
如有疑问,请前往问答中心反馈!
反馈