Make WordPress Core

Ticket #59489: patch.diff

File patch.diff, 522 bytes (added by wildworks, 3 years ago)
  • src/wp-includes/blocks/index.php

    diff --git src/wp-includes/blocks/index.php src/wp-includes/blocks/index.php
    index 128a06bea2..3228638eb0 100644
    function register_core_block_style_handles() {  
    7070                $files = glob( wp_normalize_path( BLOCKS_PATH . '**/**.css' ) );
    7171                $files = array_map(
    7272                        static function ( $file ) {
    73                                 return str_replace( BLOCKS_PATH, '', $file );
     73                                return str_replace( wp_normalize_path( BLOCKS_PATH ), '', $file );
    7474                        },
    7575                        $files
    7676                );