[wp-trac] [WordPress Trac] #56970: .is-layout-flex broken

WordPress Trac noreply at wordpress.org
Thu Nov 10 02:00:30 UTC 2022


#56970: .is-layout-flex broken
-------------------------------------------------+-------------------------
 Reporter:  rsmith4321                           |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.1.1
Component:  Editor                               |     Version:  6.1
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing-info has-screenshots   |     Focuses:
  reporter-feedback needs-patch                  |
-------------------------------------------------+-------------------------

Comment (by chairmanbrando):

 I had two hand-built themes running on WPv6.1 where one was getting the
 global styles and the other wasn't. It took a bit to find what was
 different between their setup, but it was the `remove_action()` call
 above. If I comment that out, `style#global-styles-inline-css` comes back
 immediately.

 `wp_enqueue_global_styles()` is hooked in via `wp-includes/default-
 filters.php` without any conditional checks, so something relatively
 common must be removing it if this issue is getting reported a lot. Maybe
 it is Autoptimize, but in my case I was simply trying to remove default
 fluff from WP.

 Which brings me back to my side issue that these layout styles being in
 this particular chunk of CSS perhaps isn't the right call if it's meant to
 be built up from `theme.json`. But Gutenberg changes way too often (and
 has broken live sites a half dozen times!) for me to keep up.

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


More information about the wp-trac mailing list