- 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-pattern-directory-controller.php
r54058 r55029 523 523 add_filter( 524 524 'pre_http_request', 525 static function ( $ preempt, $args, $url ) use ( $action, $expects_results ) {525 static function ( $response, $parsed_args, $url ) use ( $action, $expects_results ) { 526 526 527 527 if ( 'api.wordpress.org' !== wp_parse_url( $url, PHP_URL_HOST ) ) { 528 return $ preempt;528 return $response; 529 529 } 530 530 … … 557 557 add_filter( 558 558 'pre_http_request', 559 static function ( $re turn, $args, $url ) use ( $blocked_host ) {559 static function ( $response, $parsed_args, $url ) use ( $blocked_host ) { 560 560 561 561 if ( wp_parse_url( $url, PHP_URL_HOST ) === $blocked_host ) { … … 568 568 } 569 569 570 return $re turn;570 return $response; 571 571 }, 572 572 10,
Note: See TracChangeset
for help on using the changeset viewer.