File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,11 @@ function gutenberg_resolve_assets() {
6262 foreach ( $ block_registry ->get_all_registered () as $ block_type ) {
6363 if ( ! empty ( $ block_type ->style ) ) {
6464 if ( is_array ( $ block_type ->style ) ) {
65- $ style_handles [] = $ block_type ->style [0 ];
65+ foreach ( $ block_type ->style as $ single_style ) {
66+ if ( is_string ( $ single_style ) ) {
67+ $ style_handles [] = $ single_style ;
68+ }
69+ }
6670 } else {
6771 $ style_handles [] = $ block_type ->style ;
6872 }
Original file line number Diff line number Diff line change @@ -203,6 +203,6 @@ function gutenberg_multiple_block_styles_compat_6_1( $metadata ) {
203203 return $ metadata ;
204204}
205205
206- remove_filter ( 'block_type_metadata ' , 'gutenberg_multiple_block_styles ' );
206+ remove_filter ( 'block_type_metadata ' , '_wp_multiple_block_styles ' );
207207remove_filter ( 'block_type_metadata ' , 'gutenberg_multiple_block_styles ' );
208208add_filter ( 'block_type_metadata ' , 'gutenberg_multiple_block_styles_compat_6_1 ' , 9 );
You can’t perform that action at this time.
0 commit comments