WordPress.org

Make WordPress Core

Ticket #53507: 53507.diff

File 53507.diff, 676 bytes (added by desrosj, 3 months ago)
  • src/wp-includes/blocks.php

     
    155155        $block_dir      = dirname( $metadata['file'] );
    156156        $style_file     = realpath( "$block_dir/$style_path" );
    157157        $has_style_file = false !== $style_file;
    158         $version        = ! $is_core_block && $has_style_file ? filemtime( $style_file ) : false;
     158        $version        = ! $is_core_block && isset( $metadata['version'] ) ? $metadata['version'] : false;
    159159        $style_uri      = $has_style_file ? $style_uri : false;
    160160        $result         = wp_register_style(
    161161                $style_handle,