diff --git a/wp-includes/blocks/index.php b/wp-includes/blocks/index.php index f9ffa411af..23cbc78d26 100644 --- a/wp-includes/blocks/index.php +++ b/wp-includes/blocks/index.php @@ -48,16 +48,16 @@ function register_core_block_style_handles() { $transient_name = 'wp_core_block_css_files'; $files = get_transient( $transient_name ); if ( ! $files ) { - $files = glob( __DIR__ . '/**/**.css' ); + $files = glob( wp_normalize_path( __DIR__ . '/**/**.css' ) ); set_transient( $transient_name, $files ); } } else { - $files = glob( __DIR__ . '/**/**.css' ); + $files = glob( wp_normalize_path( __DIR__ . '/**/**.css' ) ); } $register_style = static function( $name, $filename, $style_handle ) use ( $includes_path, $includes_url, $suffix, $wp_styles, $files ) { $style_path = "blocks/{$name}/{$filename}{$suffix}.css"; - $path = $includes_path . $style_path; + $path = wp_normalize_path( $includes_path . $style_path ); if ( ! in_array( $path, $files, true ) ) { $wp_styles->add( diff --git a/wp-includes/version.php b/wp-includes/version.php index 8d8d48ea82..787c77646f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-beta3-56135'; +$wp_version = '6.3-beta3-56136'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.