[wp-trac] [WordPress Trac] #55148: In block themes, styles should load in the head

WordPress Trac noreply at wordpress.org
Fri Feb 11 19:26:52 UTC 2022


#55148: In block themes, styles should load in the head
--------------------------+---------------------
 Reporter:  oandregal     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.9.1
Component:  Editor        |     Version:  5.9
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------

Comment (by wpsoul):

 I think the problem is not only in global styles. Also, inline styles for
 container and elements are loaded in body

 This is set to place style tags wp_footer in files

 wp-includes/block-supports/elements.php
 wp-includes/block-supports/layouts.php

 When, I changed to wp_head - everything starts to work smoothly. Can we
 load inline styles in head for block themes?

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


More information about the wp-trac mailing list