Changeset 52049 for trunk/src/wp-includes/block-editor.php
- Timestamp:
- 11/08/2021 07:18:39 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-editor.php
r52042 r52049 304 304 ); 305 305 306 $theme_json = WP_Theme_JSON_Resolver::get_merged_data( $editor_settings);306 $theme_json = WP_Theme_JSON_Resolver::get_merged_data(); 307 307 308 308 if ( WP_Theme_JSON_Resolver::theme_has_support() ) { 309 309 $editor_settings['styles'][] = array( 310 'css' => $theme_json->get_stylesheet( 'block_styles'),310 'css' => $theme_json->get_stylesheet( array( 'styles', 'presets' ) ), 311 311 '__unstableType' => 'globalStyles', 312 312 ); 313 313 $editor_settings['styles'][] = array( 314 'css' => $theme_json->get_stylesheet( 'css_variables'),314 'css' => $theme_json->get_stylesheet( array( 'variables' ) ), 315 315 '__experimentalNoWrapper' => true, 316 316 '__unstableType' => 'globalStyles', … … 359 359 unset( $editor_settings['__experimentalFeatures']['typography']['customFontSize'] ); 360 360 } 361 if ( isset( $editor_settings['__experimentalFeatures']['typography'][' customLineHeight'] ) ) {362 $editor_settings['enableCustomLineHeight'] = $editor_settings['__experimentalFeatures']['typography'][' customLineHeight'];363 unset( $editor_settings['__experimentalFeatures']['typography'][' customLineHeight'] );361 if ( isset( $editor_settings['__experimentalFeatures']['typography']['lineHeight'] ) ) { 362 $editor_settings['enableCustomLineHeight'] = $editor_settings['__experimentalFeatures']['typography']['lineHeight']; 363 unset( $editor_settings['__experimentalFeatures']['typography']['lineHeight'] ); 364 364 } 365 365 if ( isset( $editor_settings['__experimentalFeatures']['spacing']['units'] ) ) { … … 367 367 unset( $editor_settings['__experimentalFeatures']['spacing']['units'] ); 368 368 } 369 if ( isset( $editor_settings['__experimentalFeatures']['spacing'][' customPadding'] ) ) {370 $editor_settings['enableCustomSpacing'] = $editor_settings['__experimentalFeatures']['spacing'][' customPadding'];371 unset( $editor_settings['__experimentalFeatures']['spacing'][' customPadding'] );369 if ( isset( $editor_settings['__experimentalFeatures']['spacing']['padding'] ) ) { 370 $editor_settings['enableCustomSpacing'] = $editor_settings['__experimentalFeatures']['spacing']['padding']; 371 unset( $editor_settings['__experimentalFeatures']['spacing']['padding'] ); 372 372 } 373 373
Note: See TracChangeset
for help on using the changeset viewer.