Changeset 52753 for branches/5.9/src/wp-includes/block-editor.php
- Timestamp:
- 02/17/2022 02:17:18 PM (3 years ago)
- Location:
- branches/5.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9
-
branches/5.9/src/wp-includes/block-editor.php
r52745 r52753 308 308 ); 309 309 310 $presets = array( 310 $global_styles = array(); 311 $presets = array( 311 312 array( 312 313 'css' => 'variables', … … 321 322 $actual_css = wp_get_global_stylesheet( array( $preset_style['css'] ) ); 322 323 if ( '' !== $actual_css ) { 323 $preset_style['css'] 324 $ editor_settings['styles'][]= $preset_style;324 $preset_style['css'] = $actual_css; 325 $global_styles[] = $preset_style; 325 326 } 326 327 } … … 333 334 $actual_css = wp_get_global_stylesheet( array( $block_classes['css'] ) ); 334 335 if ( '' !== $actual_css ) { 335 $block_classes['css'] 336 $ editor_settings['styles'][]= $block_classes;336 $block_classes['css'] = $actual_css; 337 $global_styles[] = $block_classes; 337 338 } 338 339 } 340 341 $editor_settings['styles'] = array_merge( $global_styles, get_block_editor_theme_styles() ); 339 342 340 343 $editor_settings['__experimentalFeatures'] = wp_get_global_settings();
Note: See TracChangeset
for help on using the changeset viewer.