Changeset 52026 for trunk/src/wp-includes/class-wp-http.php
- Timestamp:
- 11/07/2021 01:35:52 AM (3 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-http.php
r52025 r52026 274 274 if ( empty( $url ) || empty( $parsed_url['scheme'] ) ) { 275 275 $response = new WP_Error( 'http_request_failed', __( 'A valid URL was not provided.' ) ); 276 /** This action is documented in wp-includes/class- http.php */276 /** This action is documented in wp-includes/class-wp-http.php */ 277 277 do_action( 'http_api_debug', $response, 'response', 'Requests', $parsed_args, $url ); 278 278 return $response; … … 281 281 if ( $this->block_request( $url ) ) { 282 282 $response = new WP_Error( 'http_request_not_executed', __( 'User has blocked requests through HTTP.' ) ); 283 /** This action is documented in wp-includes/class- http.php */283 /** This action is documented in wp-includes/class-wp-http.php */ 284 284 do_action( 'http_api_debug', $response, 'response', 'Requests', $parsed_args, $url ); 285 285 return $response; … … 298 298 if ( ! wp_is_writable( dirname( $parsed_args['filename'] ) ) ) { 299 299 $response = new WP_Error( 'http_request_failed', __( 'Destination directory for file streaming does not exist or is not writable.' ) ); 300 /** This action is documented in wp-includes/class- http.php */300 /** This action is documented in wp-includes/class-wp-http.php */ 301 301 do_action( 'http_api_debug', $response, 'response', 'Requests', $parsed_args, $url ); 302 302 return $response; … … 586 586 $response = $transports[ $class ]->request( $url, $args ); 587 587 588 /** This action is documented in wp-includes/class- http.php */588 /** This action is documented in wp-includes/class-wp-http.php */ 589 589 do_action( 'http_api_debug', $response, 'response', $class, $args, $url ); 590 590 … … 593 593 } 594 594 595 /** This filter is documented in wp-includes/class- http.php */595 /** This filter is documented in wp-includes/class-wp-http.php */ 596 596 return apply_filters( 'http_response', $response, $args, $url ); 597 597 }
Note: See TracChangeset
for help on using the changeset viewer.