Skip to content

Commit

Permalink
Template hierarchy filter: Preserve existing paths
Browse files Browse the repository at this point in the history
Instead of solely returning the blade template path locate result, 
append it to the array of existing files passed to the template hierarchy filter handler,
allowing Gutenberg Full Site Editing (FSE) to find and use block templates/template parts in the (Sage 10) theme.
  • Loading branch information
strarsis authored and retlehs committed Feb 3, 2023
1 parent d9e1ec3 commit 74b8c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Roots/Acorn/Sage/Concerns/FiltersTemplates.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ trait FiltersTemplates
*/
public function filterTemplateHierarchy($files)
{
return $this->sageFinder->locate($files);
return $files + [$this->sageFinder->locate($files)];
}

/**
Expand Down

0 comments on commit 74b8c3d

Please sign in to comment.