Changeset 51657 for trunk/tests/phpunit/tests/https-migration.php
- Timestamp:
- 08/26/2021 12:57:08 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/https-migration.php
r50284 r51657 162 162 $scheme = $enabled ? 'https' : 'http'; 163 163 164 $replace_scheme = function( $url ) use ( $scheme ) {164 $replace_scheme = static function( $url ) use ( $scheme ) { 165 165 return str_replace( array( 'http://', 'https://' ), $scheme . '://', $url ); 166 166 }; … … 173 173 add_filter( 174 174 "option_$option", 175 function() use ( $value ) {175 static function() use ( $value ) { 176 176 return $value; 177 177 }
Note: See TracChangeset
for help on using the changeset viewer.