Changeset 52336
- Timestamp:
- 12/07/2021 04:38:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/site-editor.php
r52333 r52336 38 38 ); 39 39 40 $indexed_template_types = array(); 41 foreach ( get_default_block_template_types() as $slug => $template_type ) { 42 $template_type['slug'] = (string) $slug; 43 $indexed_template_types[] = $template_type; 44 } 45 40 46 $block_editor_context = new WP_Block_Editor_Context(); 41 47 $custom_settings = array( … … 43 49 'postsPerPage' => get_option( 'posts_per_page' ), 44 50 'styles' => get_block_editor_theme_styles(), 45 'defaultTemplateTypes' => get_default_block_template_types(),51 'defaultTemplateTypes' => $indexed_template_types, 46 52 'defaultTemplatePartAreas' => get_allowed_block_template_part_areas(), 47 53 '__experimentalBlockPatterns' => WP_Block_Patterns_Registry::get_instance()->get_all_registered(),
Note: See TracChangeset
for help on using the changeset viewer.