[wp-trac] [WordPress Trac] #57007: Row block in Gutenberg broken in 6.1

WordPress Trac noreply at wordpress.org
Mon Nov 7 12:10:17 UTC 2022


#57007: Row block in Gutenberg broken in 6.1
--------------------------+------------------------------
 Reporter:  mplayer       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  6.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by mahwp):

 Looking at ticket/56970, it seems that the cause is that the global style
 is not applied.

 How to write the function.php of the child theme is bad...?

 <?php
 add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles_sg' );
 function theme_enqueue_styles_sg() {
     wp_enqueue_style( 'child-style', get_stylesheet_uri(),
         array( 'parenthandle' ),
         wp_get_theme()->get('Version') // this only works if you have
 Version in the style header
     );
 }

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


More information about the wp-trac mailing list