[wp-trac] [WordPress Trac] #53375: Loading separate core block assets tries to load stylesheets on blocks that doesn't have styles

WordPress Trac noreply at wordpress.org
Fri Jun 25 16:27:46 UTC 2021


#53375: Loading separate core block assets tries to load stylesheets on blocks that
doesn't have styles
------------------------------+------------------------
 Reporter:  walbo             |       Owner:  desrosj
     Type:  defect (bug)      |      Status:  reviewing
 Priority:  normal            |   Milestone:  5.8
Component:  Editor            |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------------

Comment (by desrosj):

 I've moved #53507 to the 5.8 milestone to investigate. As far as I can
 tell, the `version` field in metadata is used already in
 `register_block_script_handle()`. So I think we could try:
 - Using this field if present in the metadata.
 - Fall back to `false` if `version` is not set.
 - Publish a dev note encouraging developers to always include a top level
 `version` field in there `block.json` file.

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


More information about the wp-trac mailing list