deprecate TEMPLATEPATH and STYLESHEETPATH — at Version 17
|Reported by:||aaroncampbell||Owned by:|
|Cc:||info@…, chip@…, me@…, pippin@…, omarabid, travis@…, juliobosk@…, anu@…, bob.ellison@…|
Description (last modified by aaroncampbell)
As part of #15086 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.