[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 18:50:30 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:  reviewing
 Priority:  normal                   |   Milestone:  5.9
Component:  Script Loader            |     Version:  5.8.2
 Severity:  normal                   |  Resolution:
 Keywords:  needs-testing has-patch  |     Focuses:
-------------------------------------+------------------------
Changes (by audrasjb):

 * Attachment "Capture d’écran 2021-11-28 à 19.49.41.png" added.

 Before patch: stylesheet is enqueued even on a post without the block
 variation

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


More information about the wp-trac mailing list