Opened 18 months ago
Closed 18 months ago
#58520 closed enhancement (fixed)
Change the order of check in is_block_theme
Reported by: | spacedmonkey | Owned by: | spacedmonkey |
---|---|---|---|
Milestone: | 6.3 | Priority: | normal |
Severity: | normal | Version: | 5.8 |
Component: | Themes | Keywords: | good-first-bug commit |
Focuses: | performance | Cc: |
Description
In the method is_block_theme
in WP_Theme
class, a check for files in block-templates
and templates
. However files in block-templates
where deprecated in 5.9. It is far more like that themes will have files in the templates
directory. To improve performance, change the order of the lookup, to check block-templates
and save a file lookup.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Patch added