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

WordPress Trac noreply at wordpress.org
Tue Nov 22 15:12:40 UTC 2022


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

Comment (by dalesandro):

 Another possible cause is a plugin or theme filtering 'safe_style_css' to
 include 'display' (sample code below). This will cause gallery blocks to
 display incorrectly as a stacked column or row in both the front-end as
 well as the editor.


 {{{
 add_filter( 'safe_style_css', function( $styles ) {
     $styles[] = 'display';
     return $styles;
 } );
 }}}

 As an alternative solution, plugin/theme developers may replace the
 'safe_style_css' filter with a <div> hidden attribute.

 {{{
 <div hidden></div>
 }}}

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


More information about the wp-trac mailing list