Changeset 48462 for trunk/src/wp-includes/class-http.php
- Timestamp:
- 07/13/2020 10:08:16 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-http.php
r48109 r48462 238 238 239 239 /** 240 * Filters whether to preempt an HTTP request's return value.240 * Filters the preemptive return value of an HTTP request. 241 241 * 242 242 * Returning a non-false value from the filter will short-circuit the HTTP request and return 243 * early with that value. A filter should return either:243 * early with that value. A filter should return one of: 244 244 * 245 245 * - An array containing 'headers', 'body', 'response', 'cookies', and 'filename' elements 246 246 * - A WP_Error instance 247 * - boolean false (to avoid short-circuiting the response)247 * - boolean false to avoid short-circuiting the response 248 248 * 249 249 * Returning any other value may result in unexpected behaviour. … … 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.253 * @param false|array|WP_Error $preempt A preemptive return value of an HTTP request. Default false. 254 254 * @param array $parsed_args HTTP request arguments. 255 255 * @param string $url The request URL.
Note: See TracChangeset
for help on using the changeset viewer.