mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 20:54:29 +00:00
Docs: Docblock corrections and improvements, mostly related to various pre_* filters.
See #47110 git-svn-id: https://develop.svn.wordpress.org/trunk@46232 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -152,9 +152,9 @@ class WP_HTTP_Proxy {
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether URL should be sent through the proxy server.
|
||||
* Determines whether the request should be sent through a proxy.
|
||||
*
|
||||
* We want to keep localhost and the site URL from being sent through the proxy server, because
|
||||
* We want to keep localhost and the site URL from being sent through the proxy, because
|
||||
* some proxies can not handle this. We also have the constant available for defining other
|
||||
* hosts that won't be sent through the proxy.
|
||||
*
|
||||
@@ -181,17 +181,17 @@ class WP_HTTP_Proxy {
|
||||
$home = parse_url( get_option( 'siteurl' ) );
|
||||
|
||||
/**
|
||||
* Filters whether to preempt sending the request through the proxy server.
|
||||
* Filters whether to preempt sending the request through the proxy.
|
||||
*
|
||||
* Returning false will bypass the proxy; returning true will send
|
||||
* the request through the proxy. Returning null bypasses the filter.
|
||||
*
|
||||
* @since 3.5.0
|
||||
*
|
||||
* @param null $override Whether to override the request result. Default null.
|
||||
* @param string $uri URL to check.
|
||||
* @param array $check Associative array result of parsing the URI.
|
||||
* @param array $home Associative array result of parsing the site URL.
|
||||
* @param bool|null $override Whether to override the request result. Default null.
|
||||
* @param string $uri URL to check.
|
||||
* @param array $check Associative array result of parsing the request URI.
|
||||
* @param array $home Associative array result of parsing the site URL.
|
||||
*/
|
||||
$result = apply_filters( 'pre_http_send_through_proxy', null, $uri, $check, $home );
|
||||
if ( ! is_null( $result ) ) {
|
||||
|
||||
Reference in New Issue
Block a user