Changeset 54291
- Timestamp:
- 09/23/2022 01:58:19 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-editor.php
r54272 r54291 193 193 // themes without their own editor styles. 194 194 $default_editor_styles_file = ABSPATH . WPINC . '/css/dist/block-editor/default-editor-styles.css'; 195 if ( file_exists( $default_editor_styles_file ) ) { 195 196 static $default_editor_styles_file_contents = false; 197 if ( ! $default_editor_styles_file_contents && file_exists( $default_editor_styles_file ) ) { 198 $default_editor_styles_file_contents = file_get_contents( $default_editor_styles_file ); 199 } 200 201 $default_editor_styles = array(); 202 if ( $default_editor_styles_file_contents ) { 196 203 $default_editor_styles = array( 197 array( 'css' => file_get_contents( $default_editor_styles_file )),204 array( 'css' => $default_editor_styles_file_contents ), 198 205 ); 199 } else {200 $default_editor_styles = array();201 206 } 202 207
Note: See TracChangeset
for help on using the changeset viewer.