[wp-trac] [WordPress Trac] #58905: Ensure locate_template only loads theme files
WordPress Trac
noreply at wordpress.org
Tue Jul 25 19:44:43 UTC 2023
#58905: Ensure locate_template only loads theme files
--------------------------+-----------------------------
Reporter: jorbin | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.4
Component: Themes | Version:
Severity: normal | Keywords: has-patch early
Focuses: |
--------------------------+-----------------------------
It's possible to have locate_template load files that are not template
files which could be unexpected behavior that breaks the display of a
page.
The chance this breaks something is, I think, not infinitesimal.
Therefore, this should go in early.
An initial patch is attached.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58905>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list