Opened 3 years ago
Closed 2 years ago
#58520 closed enhancement (fixed)
Change the order of check in is_block_theme
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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