[wp-trac] [WordPress Trac] #58576: locate_template does not check to see site has parent theme.
WordPress Trac
noreply at wordpress.org
Fri Jul 21 15:36:49 UTC 2023
#58576: locate_template does not check to see site has parent theme.
--------------------------------------+--------------------------
Reporter: spacedmonkey | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.4
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has-patch | Focuses: performance
--------------------------------------+--------------------------
Comment (by flixos90):
@nihar007 The patch looks good, one recommendation though: Instead of
manually checking the condition, I think we should use the
`is_child_theme()` function instead which already contains that logic.
An additional small benefit from using that will be that if we implement
#58866 we would not need to update this logic here, but only the used
function internally.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58576#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list