Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Themes: Avoid unnecessary check whether parent template file exists w…
…hen not using a child theme. Prior to this change, the `locate_template()` function would unconditionally check whether the relevant template file exists in the parent theme, which for sites not using a child theme is an exact duplicate of the previous check. This is wasteful and has a small impact on performance since `file_exists()` checks have a cost. Props nihar007, thekt12, spacedmonkey, mukesh27. Fixes #58576. git-svn-id: https://develop.svn.wordpress.org/trunk@56357 602fd350-edb4-49c9-b593-d223f7449a82
- Loading branch information