- Timestamp:
- 01/05/2023 10:21:19 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-block-directory-controller.php
r54058 r55029 275 275 add_filter( 276 276 'pre_http_request', 277 static function ( $re turn, $args, $url ) use ( $blocked_host ) {277 static function ( $response, $parsed_args, $url ) use ( $blocked_host ) { 278 278 if ( @parse_url( $url, PHP_URL_HOST ) === $blocked_host ) { 279 279 return new WP_Error( 'plugins_api_failed', "An expected error occurred connecting to $blocked_host because of a unit test", "cURL error 7: Failed to connect to $blocked_host port 80: Connection refused" ); … … 281 281 } 282 282 283 return $re turn;283 return $response; 284 284 }, 285 285 10,
Note: See TracChangeset
for help on using the changeset viewer.