Description
Controls the list of ports considered safe in HTTP API. Allows to change and allow external requests for the HTTP request.
Occurrences
Filename | Line Number |
---|---|
wp-includes/http.php | 638 |
Parameters
Type | Name | Description |
---|---|---|
int[] | $allowed_ports | Array of integers for valid ports. |
string | $host | Host name of the requested URL. |
string | $url | Requested URL. |
PHP Doc
/**
* Controls the list of ports considered safe in HTTP API.
*
* Allows to change and allow external requests for the HTTP request.
*
* @since 5.9.0
*
* @param int[] $allowed_ports Array of integers for valid ports.
* @param string $host Host name of the requested URL.
* @param string $url Requested URL.
*/