Changeset 57118
- Timestamp:
- 11/17/2023 07:08:47 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template-utils.php
r56960 r57118 519 519 function _build_block_template_result_from_file( $template_file, $template_type ) { 520 520 $default_template_types = get_default_block_template_types(); 521 $template_content = file_get_contents( $template_file['path'] );522 521 $theme = get_stylesheet(); 523 522 … … 525 524 $template->id = $theme . '//' . $template_file['slug']; 526 525 $template->theme = $theme; 526 $template->content = file_get_contents( $template_file['path'] ); 527 527 $template->slug = $template_file['slug']; 528 528 $template->source = 'theme'; … … 555 555 $after_block_visitor = make_after_block_visitor( $hooked_blocks, $template ); 556 556 } 557 $blocks = parse_blocks( $template _content );557 $blocks = parse_blocks( $template->content ); 558 558 $template->content = traverse_and_serialize_blocks( $blocks, $before_block_visitor, $after_block_visitor ); 559 559
Note: See TracChangeset
for help on using the changeset viewer.