WP_HTTP_Proxy::use_authentication()
Whether authentication should be used.
Description
Constants which control this behavior:
WP_PROXY_USERNAMEWP_PROXY_PASSWORD
Return
(bool)
Source
File: wp-includes/class-wp-http-proxy.php
public function use_authentication() {
return defined('WP_PROXY_USERNAME') && defined('WP_PROXY_PASSWORD');
}
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |