[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
Thu Jun 17 20:00:00 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 desrosj):

 Replying to [comment:9 walbo]:
 > Seeing `file_exists` is used some other places in core as well so should
 maybe create a second ticket to explore removal of those.

 I haven't taken a deep dive into the other uses in Core, but this one
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 includes/blocks/index.php?rev=51179#L47 happens within a loop through]
 `register_core_block_types_from_metadata()`. On brief glance, the other
 instances seem like one off file checks.

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


More information about the wp-trac mailing list