Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Query: Check if the theme supports
block-templates
before calling `…
…locate_block_template()` in `get_query_template()`. This change improves performance for classic themes by removing an unnecessary query and fixes an issue where a classic theme would show "Empty template: Index" on the frontend when an empty `(block-)templates/index.html` file exists. Props johnbillion, ianatkins, Mamaduka, costdev, manfcarlo, dolphingg, audrasjb, madeinua, kapilpaul, rafiahmedd, SergeyBiryukov. Fixes #54844. git-svn-id: https://develop.svn.wordpress.org/trunk@52697 602fd350-edb4-49c9-b593-d223f7449a82
- Loading branch information