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. Built from https://develop.svn.wordpress.org/trunk@56357 git-svn-id: http://core.svn.wordpress.org/trunk@55869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
23 KiB
23 KiB