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

WordPress Trac noreply at wordpress.org
Tue Jun 15 00:39:14 UTC 2021


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

Comment (by jorbin):

 The `file_exists` and `filemtime` was added in [50836] by @gziolo.
 Related:  #50328, #52620.

 Would it be possible to get rid of them and have blocks opt in to
 individual stylesheets and if they don't opt in, not output anything?

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


More information about the wp-trac mailing list