diff --git a/wp-includes/blocks/index.php b/wp-includes/blocks/index.php index 128a06bea2..6832759e77 100644 --- a/wp-includes/blocks/index.php +++ b/wp-includes/blocks/index.php @@ -68,9 +68,13 @@ function register_core_block_style_handles() { if ( ! $files ) { $files = glob( wp_normalize_path( BLOCKS_PATH . '**/**.css' ) ); + + // Normalize BLOCKS_PATH prior to substitution for Windows environments. + $normalized_blocks_path = wp_normalize_path( BLOCKS_PATH ); + $files = array_map( - static function ( $file ) { - return str_replace( BLOCKS_PATH, '', $file ); + static function ( $file ) use ( $normalized_blocks_path ) { + return str_replace( $normalized_blocks_path, '', $file ); }, $files ); diff --git a/wp-includes/version.php b/wp-includes/version.php index bbdff51fc5..05567a58da 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-beta2-56783'; +$wp_version = '6.4-beta2-56785'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.