Skip to content

Commit

Permalink
Bugfix: Site Editor templates/parts Added by fix
Browse files Browse the repository at this point in the history
Child themes inherit template parts but WordPress doesn't correctly display that.
  • Loading branch information
ptahdunbar committed Mar 22, 2022
1 parent 41de513 commit 25bbf03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-includes/block-template-utils.php
Expand Up @@ -510,7 +510,7 @@ function _build_block_template_result_from_file( $template_file, $template_type

$template = new WP_Block_Template();
$template->id = $theme . '//' . $template_file['slug'];
$template->theme = $theme;
$template->theme = ! empty($template_file['theme']) ? $template_file['theme'] : $theme;
$template->content = _inject_theme_attribute_in_block_template_content( $template_content );
$template->slug = $template_file['slug'];
$template->source = 'theme';
Expand Down

0 comments on commit 25bbf03

Please sign in to comment.