[wp-trac] [WordPress Trac] #54457: The function to load styles only for the block you are using is not working in register_block_style.

WordPress Trac noreply at wordpress.org
Sun Nov 28 21:10:23 UTC 2021


#54457: The function to load styles only for the block you are using is not working
in register_block_style.
---------------------------------------+-----------------------
 Reporter:  shimotomoki                |       Owner:  audrasjb
     Type:  defect (bug)               |      Status:  closed
 Priority:  normal                     |   Milestone:  5.9
Component:  Script Loader              |     Version:  5.8.2
 Severity:  normal                     |  Resolution:  fixed
 Keywords:  has-patch has-screenshots  |     Focuses:
---------------------------------------+-----------------------
Changes (by audrasjb):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52262" 52262]:
 {{{
 #!CommitTicketReference repository="" revision="52262"
 Script Loader: Enqueue block stylesheet only when the corresponding block
 is used.

 Before this change, block stylesheets were enqueued although the
 corresponding blocks were not used in the current post, even if the
 `should_load_separate_core_block_assets` filter was set to `true`.

 Props shimotomoki, devutpol, audrasjb.
 Fixes #54457.
 }}}

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


More information about the wp-trac mailing list