Changeset 46424 for trunk/src/wp-includes/class-http.php
- Timestamp:
- 10/07/2019 07:06:41 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-http.php
r46232 r46424 134 134 * need to be separately decompressed. Default true. 135 135 * @type bool $sslverify Whether to verify SSL for the request. Default true. 136 * @type string sslcertificatesAbsolute path to an SSL certificate .crt file.136 * @type string $sslcertificates Absolute path to an SSL certificate .crt file. 137 137 * Default ABSPATH . WPINC . '/certificates/ca-bundle.crt'. 138 138 * @type bool $stream Whether to stream to a file. If set to true and no filename was … … 216 216 $args = wp_parse_args( $args ); 217 217 218 // By default, H eadrequests do not cause redirections.218 // By default, HEAD requests do not cause redirections. 219 219 if ( isset( $args['method'] ) && 'HEAD' == $args['method'] ) { 220 220 $defaults['redirection'] = 0; … … 251 251 * @since 2.9.0 252 252 * 253 * @param false|array|WP_Error $preempt Whether to preempt an HTTP request's return value. Default false.254 * @param array $parsed_args 255 * @param string $url The request URL.253 * @param false|array|WP_Error $preempt Whether to preempt an HTTP request's return value. Default false. 254 * @param array $parsed_args HTTP request arguments. 255 * @param string $url The request URL. 256 256 */ 257 257 $pre = apply_filters( 'pre_http_request', false, $parsed_args, $url ); … … 410 410 * @since 2.8.0 411 411 * 412 * @param array|WP_Error $response HTTP response or WP_Error object.413 * @param string $context Context under which the hook is fired.414 * @param string $class HTTP transport used.415 * @param array $parsed_args 416 * @param string $url The request URL.412 * @param array|WP_Error $response HTTP response or WP_Error object. 413 * @param string $context Context under which the hook is fired. 414 * @param string $class HTTP transport used. 415 * @param array $parsed_args HTTP request arguments. 416 * @param string $url The request URL. 417 417 */ 418 418 do_action( 'http_api_debug', $response, 'response', 'Requests', $parsed_args, $url ); … … 439 439 * @since 2.9.0 440 440 * 441 * @param array $response HTTP response.442 * @param array $parsed_args 443 * @param string $url The request URL.441 * @param array $response HTTP response. 442 * @param array $parsed_args HTTP request arguments. 443 * @param string $url The request URL. 444 444 */ 445 445 return apply_filters( 'http_response', $response, $parsed_args, $url ); … … 891 891 return ! preg_match( $wildcard_regex, $check['host'] ); 892 892 } else { 893 return ! in_array( $check['host'], $accessible_hosts ); // Inverse logic, If it's in the array, then we can't accessit.893 return ! in_array( $check['host'], $accessible_hosts ); // Inverse logic, if it's in the array, then don't block it. 894 894 } 895 895 … … 990 990 991 991 /** 992 * Handles HTTP Redirects and follows themif appropriate.992 * Handles an HTTP redirect and follows it if appropriate. 993 993 * 994 994 * @since 3.7.0
Note: See TracChangeset
for help on using the changeset viewer.