Make WordPress Core

Opened 4 years ago

Last modified 17 months ago

#18298 reopened enhancement

deprecate TEMPLATEPATH and STYLESHEETPATH — at Initial Version

Reported by: aaroncampbell Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 3.0
Component: Themes Keywords: needs-patch
Focuses: template Cc:


As part of #15806 we wanted to add unit tests, but we came across a problem in #UT22. Basically locate_template() uses these constants instead of get_template_directory() and get_stylesheet_directory() which makes it impossible to use switch_theme(). It looks like the constants are only used in about 20 places through core, so I recommend we fix those places and deprecate the constants.

Change History (0)

Note: See TracTickets for help on using tickets.