Changeset 51657 for trunk/tests/phpunit/tests/https-detection.php
- Timestamp:
- 08/26/2021 12:57:08 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/https-detection.php
r51568 r51657 118 118 add_filter( 119 119 'pre_wp_update_https_detection_errors', 120 function() {120 static function() { 121 121 return new WP_Error(); 122 122 } … … 128 128 add_filter( 129 129 'pre_wp_update_https_detection_errors', 130 function() {130 static function() { 131 131 return new WP_Error( 132 132 'ssl_verification_failed', … … 346 346 */ 347 347 private function filter_set_url_scheme( $scheme ) { 348 return function( $url ) use ( $scheme ) {348 return static function( $url ) use ( $scheme ) { 349 349 return set_url_scheme( $url, $scheme ); 350 350 };
Note: See TracChangeset
for help on using the changeset viewer.