Changeset 51090
- Timestamp:
- 06/08/2021 08:14:59 AM (3 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-blocks.php
r51003 r51090 132 132 $styles = array( 133 133 array( 134 'css' => 'body { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif }', 134 'css' => 'body { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif }', 135 '__unstableType' => 'core', 135 136 ), 136 137 ); … … 141 142 if ( ! is_wp_error( $response ) ) { 142 143 $styles[] = array( 143 'css' => wp_remote_retrieve_body( $response ), 144 'css' => wp_remote_retrieve_body( $response ), 145 '__unstableType' => 'theme', 144 146 ); 145 147 } … … 148 150 if ( is_file( $file ) ) { 149 151 $styles[] = array( 150 'css' => file_get_contents( $file ), 151 'baseURL' => get_theme_file_uri( $style ), 152 'css' => file_get_contents( $file ), 153 'baseURL' => get_theme_file_uri( $style ), 154 '__unstableType' => 'theme', 152 155 ); 153 156 } -
trunk/src/wp-includes/block-editor.php
r51067 r51090 284 284 285 285 if ( WP_Theme_JSON_Resolver::theme_has_support() ) { 286 $editor_settings['styles'][] = array( 'css' => $theme_json->get_stylesheet( 'block_styles' ) ); 286 $editor_settings['styles'][] = array( 287 'css' => $theme_json->get_stylesheet( 'block_styles' ), 288 '__unstableType' => 'globalStyles', 289 ); 287 290 $editor_settings['styles'][] = array( 288 291 'css' => $theme_json->get_stylesheet( 'css_variables' ), 289 292 '__experimentalNoWrapper' => true, 293 '__unstableType' => 'globalStyles', 290 294 ); 291 295 }
Note: See TracChangeset
for help on using the changeset viewer.