Changeset 56789
- Timestamp:
- 10/05/2023 05:13:09 PM (21 months ago)
- Location:
- branches/6.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.3
-
branches/6.3/src/wp-includes/blocks/index.php
r56528 r56789 69 69 if ( ! $files ) { 70 70 $files = glob( wp_normalize_path( BLOCKS_PATH . '**/**.css' ) ); 71 72 // Normalize BLOCKS_PATH prior to substitution for Windows environments. 73 $normalized_blocks_path = wp_normalize_path( BLOCKS_PATH ); 74 71 75 $files = array_map( 72 static function ( $file ) {73 return str_replace( BLOCKS_PATH, '', $file );76 static function ( $file ) use ( $normalized_blocks_path ) { 77 return str_replace( $normalized_blocks_path, '', $file ); 74 78 }, 75 79 $files
Note: See TracChangeset
for help on using the changeset viewer.