[wp-trac] [WordPress Trac] #18298: deprecate TEMPLATEPATH and STYLESHEETPATH
WordPress Trac
noreply at wordpress.org
Wed Oct 18 19:06:41 UTC 2023
#18298: deprecate TEMPLATEPATH and STYLESHEETPATH
-------------------------------------------------+-------------------------
Reporter: aaroncampbell | Owner: flixos90
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.4
Component: Themes | Version: 3.0
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: template,
add-to-field-guide | performance
-------------------------------------------------+-------------------------
Changes (by flixos90):
* keywords: has-patch has-unit-tests needs-dev-note commit => has-patch
has-unit-tests commit add-to-field-guide
Comment:
I think this should be added to the field guide as it is not significant
enough to warrant a dev note and can be quickly explained. Maybe something
like:
> The `TEMPLATEPATH` and `STYLESHEETPATH` constants have been deprecated.
`get_template_directory()` and `get_stylesheet_directory()` should be used
instead.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18298#comment:79>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list