Changeset 56005 for trunk/src/wp-includes/blocks.php
- Timestamp:
- 06/23/2023 06:59:53 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r55988 r56005 220 220 $suffix = SCRIPT_DEBUG ? '' : '.min'; 221 221 if ( $is_core_block ) { 222 $style_path = "style$suffix.css";222 $style_path = ( 'editorStyle' === $field_name ) ? "editor{$suffix}.css" : "style{$suffix}.css"; 223 223 } 224 224 … … 240 240 $style_uri = get_theme_file_uri( str_replace( $theme_path_norm, '', $style_path_norm ) ); 241 241 } elseif ( $is_core_block ) { 242 $style_uri = includes_url( 'blocks/' . str_replace( 'core/', '', $metadata['name'] ) . "/style$suffix.css" ); 242 // All possible $style_path variants for core blocks are hard-coded above. 243 $style_uri = includes_url( 'blocks/' . str_replace( 'core/', '', $metadata['name'] ) . '/' . $style_path ); 243 244 } 244 245 } else {
Note: See TracChangeset
for help on using the changeset viewer.