Changeset 56136
- Timestamp:
- 07/05/2023 07:14:20 AM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/index.php
r56064 r56136 49 49 $files = get_transient( $transient_name ); 50 50 if ( ! $files ) { 51 $files = glob( __DIR__ . '/**/**.css');51 $files = glob( wp_normalize_path( __DIR__ . '/**/**.css' ) ); 52 52 set_transient( $transient_name, $files ); 53 53 } 54 54 } else { 55 $files = glob( __DIR__ . '/**/**.css');55 $files = glob( wp_normalize_path( __DIR__ . '/**/**.css' ) ); 56 56 } 57 57 58 58 $register_style = static function( $name, $filename, $style_handle ) use ( $includes_path, $includes_url, $suffix, $wp_styles, $files ) { 59 59 $style_path = "blocks/{$name}/{$filename}{$suffix}.css"; 60 $path = $includes_path . $style_path;60 $path = wp_normalize_path( $includes_path . $style_path ); 61 61 62 62 if ( ! in_array( $path, $files, true ) ) {
Note: See TracChangeset
for help on using the changeset viewer.