Skip to content

Commit

Permalink
🎨 Use current_theme_supports when checking for block-templates su…
Browse files Browse the repository at this point in the history
…pport (#365)
  • Loading branch information
Log1x authored Mar 28, 2024
1 parent aac03d6 commit 7adbd1e
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 @@ -16,7 +16,7 @@ public function filterTemplateHierarchy($files)
{
$templates = [...$this->sageFinder->locate($files), ...$files];

return ! get_theme_support('block-templates')
return ! current_theme_supports('block-templates')
? $templates
: array_reverse($templates);
}
Expand Down

0 comments on commit 7adbd1e

Please sign in to comment.