allowed_http_request_hosts( bool $is_external, string $host )
Whitelists allowed redirect hosts for safe HTTP requests as well.
Description Description
Attached to the ‘http_request_host_is_external’ filter.
Parameters Parameters
- $is_external
-
(bool) (Required)
- $host
-
(string) (Required)
Return Return
(bool)
Source Source
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; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |