[wp-trac] [WordPress Trac] #53507: Block style version: replace filemtime with version from Block API metadata

WordPress Trac noreply at wordpress.org
Fri Jun 25 15:56:47 UTC 2021


#53507: Block style version: replace filemtime with version from Block API metadata
----------------------------------------+------------------------------
 Reporter:  hellofromTonya              |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Script Loader               |     Version:  5.5
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:
----------------------------------------+------------------------------

Comment (by gziolo):

 @desrosj, it's not listed as a top-level field, but we should introduce
 one to cover this use case. It would be a good fallback for the case when
 the asset file is not generated for the script. For styles, we don't have
 asset files present so they could use the version of the plugin by default
 instead of hitting the filesystem to read the modification date of the
 file.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53507#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list